From 8189ec087269fcbfc6b6ee04836eab126e193c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Thu, 27 Jan 2022 06:57:15 +0100 Subject: [PATCH] Set explicit OBJECT library type for internal togl On UNIX systems, the togl library should be statically linked. When the type is not set explicitly, this would default to SHARED when -DBUILD_SHARED_LIBS:BOOL=ON is set. --- ng/Togl2.1/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ng/Togl2.1/CMakeLists.txt b/ng/Togl2.1/CMakeLists.txt index b299664c..c92f5a9b 100644 --- a/ng/Togl2.1/CMakeLists.txt +++ b/ng/Togl2.1/CMakeLists.txt @@ -20,7 +20,7 @@ else(WIN32) include_directories(BEFORE "${TCL_INCLUDE_PATH}") include_directories(BEFORE "${TK_INCLUDE_PATH}") - add_library(togl togl.c toglProcAddr.c toglStubInit.c) + add_library(togl OBJECT togl.c toglProcAddr.c toglStubInit.c) target_link_libraries(togl ${TCL_STUB_LIBRARY} ${TK_STUB_LIBRARY}) endif(WIN32)