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.
This commit is contained in:
Stefan Brüns 2022-01-27 06:57:15 +01:00
parent 86fd2983c7
commit 8189ec0872

View File

@ -20,7 +20,7 @@ else(WIN32)
include_directories(BEFORE "${TCL_INCLUDE_PATH}") include_directories(BEFORE "${TCL_INCLUDE_PATH}")
include_directories(BEFORE "${TK_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}) target_link_libraries(togl ${TCL_STUB_LIBRARY} ${TK_STUB_LIBRARY})
endif(WIN32) endif(WIN32)