mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Threads still need to be linked with static library
This commit is contained in:
parent
279c32e3f9
commit
5162796094
@ -24,7 +24,7 @@ endif()
|
|||||||
set(GETOPT ${GLFW_SOURCE_DIR}/support/getopt.h
|
set(GETOPT ${GLFW_SOURCE_DIR}/support/getopt.h
|
||||||
${GLFW_SOURCE_DIR}/support/getopt.c)
|
${GLFW_SOURCE_DIR}/support/getopt.c)
|
||||||
set(TINYCTHREAD ${GLFW_SOURCE_DIR}/support/tinycthread.h
|
set(TINYCTHREAD ${GLFW_SOURCE_DIR}/support/tinycthread.h
|
||||||
${GLFW_SOURCE_DIR}/support/tinycthread.c)
|
${GLFW_SOURCE_DIR}/support/tinycthread.c)
|
||||||
|
|
||||||
add_executable(clipboard clipboard.c ${GETOPT})
|
add_executable(clipboard clipboard.c ${GETOPT})
|
||||||
add_executable(defaults defaults.c)
|
add_executable(defaults defaults.c)
|
||||||
@ -57,9 +57,8 @@ set_target_properties(title PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Title")
|
|||||||
add_executable(windows WIN32 MACOSX_BUNDLE windows.c)
|
add_executable(windows WIN32 MACOSX_BUNDLE windows.c)
|
||||||
set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows")
|
set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows")
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
target_link_libraries(threads ${thread_LIBRARIES})
|
||||||
target_link_libraries(threads ${thread_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(WINDOWS_BINARIES accuracy sharing tearing threads title windows)
|
set(WINDOWS_BINARIES accuracy sharing tearing threads title windows)
|
||||||
set(CONSOLE_BINARIES clipboard defaults events fsaa fsfocus gamma glfwinfo
|
set(CONSOLE_BINARIES clipboard defaults events fsaa fsfocus gamma glfwinfo
|
||||||
|
Loading…
Reference in New Issue
Block a user