Fix NOTFOUND paths being added as dependencies

Fixes #930.
This commit is contained in:
Camilla Löwy
2017-01-08 15:51:37 +01:00
parent d25b427efe
commit c873327fe3
3 changed files with 13 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ link_libraries(glfw)
include_directories(${glfw_INCLUDE_DIRS} "${GLFW_SOURCE_DIR}/deps")
if (BUILD_SHARED_LIBS)
if (MATH_LIBRARY)
link_libraries("${MATH_LIBRARY}")
endif()
@@ -38,8 +38,12 @@ add_executable(timeout WIN32 MACOSX_BUNDLE timeout.c ${GLAD})
add_executable(title WIN32 MACOSX_BUNDLE title.c ${GLAD})
add_executable(windows WIN32 MACOSX_BUNDLE windows.c ${GETOPT} ${GLAD})
target_link_libraries(empty "${CMAKE_THREAD_LIBS_INIT}" "${RT_LIBRARY}")
target_link_libraries(threads "${CMAKE_THREAD_LIBS_INIT}" "${RT_LIBRARY}")
target_link_libraries(empty "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries(threads "${CMAKE_THREAD_LIBS_INIT}")
if (RT_LIBRARY)
target_link_libraries(empty "${RT_LIBRARY}")
target_link_libraries(threads "${RT_LIBRARY}")
endif()
set(WINDOWS_BINARIES empty gamma icon joysticks sharing tearing threads timeout
title windows)