t1c 2025-04-28 13:44:34 +08:00 committed by GitHub
parent e14434c059
commit dc77205ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ link_libraries(glfw)
include_directories("${GLFW_SOURCE_DIR}/deps")
if (MATH_LIBRARY)
if (NOT MATH_LIBRARY STREQUAL "MATH_LIBRARY-NOTFOUND")
link_libraries("${MATH_LIBRARY}")
endif()
@ -43,7 +43,7 @@ add_executable(window WIN32 MACOSX_BUNDLE window.c ${GLAD_GL})
target_link_libraries(empty 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(threads "${RT_LIBRARY}")
endif()