Replace CMake threads variable with modern target

This commit is contained in:
Camilla Löwy
2019-12-15 09:53:18 +01:00
parent 8a5fd0c5a4
commit 49c5d837b4
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ target_include_directories(glfw PRIVATE
"${GLFW_SOURCE_DIR}/src"
"${GLFW_BINARY_DIR}/src"
${glfw_INCLUDE_DIRS})
target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES})
target_link_libraries(glfw PRIVATE Threads::Threads ${glfw_LIBRARIES})
if (APPLE)
# For some reason CMake didn't know about .m until version 3.16