mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
Update CMakeLists.txt
https://cmake.org/cmake/help/v3.28/command/find_library.html#find-library
This commit is contained in:
parent
e14434c059
commit
dc77205ff2
@ -3,7 +3,7 @@ link_libraries(glfw)
|
|||||||
|
|
||||||
include_directories("${GLFW_SOURCE_DIR}/deps")
|
include_directories("${GLFW_SOURCE_DIR}/deps")
|
||||||
|
|
||||||
if (MATH_LIBRARY)
|
if (NOT MATH_LIBRARY STREQUAL "MATH_LIBRARY-NOTFOUND")
|
||||||
link_libraries("${MATH_LIBRARY}")
|
link_libraries("${MATH_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ add_executable(window WIN32 MACOSX_BUNDLE window.c ${GLAD_GL})
|
|||||||
|
|
||||||
target_link_libraries(empty Threads::Threads)
|
target_link_libraries(empty Threads::Threads)
|
||||||
target_link_libraries(threads Threads::Threads)
|
target_link_libraries(threads Threads::Threads)
|
||||||
if (RT_LIBRARY)
|
if (NOT RT_LIBRARY STREQUAL "RT_LIBRARY-NOTFOUND")
|
||||||
target_link_libraries(empty "${RT_LIBRARY}")
|
target_link_libraries(empty "${RT_LIBRARY}")
|
||||||
target_link_libraries(threads "${RT_LIBRARY}")
|
target_link_libraries(threads "${RT_LIBRARY}")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user