aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-02-28 09:01:22 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-04 12:34:27 +0200
commit6f83912aa49cffab33a2100b052c2fb70c52a92c (patch)
treea1aed4fe324255d0f2dc3021a83518cf7b6c65b6
parenta4bdce27a7c905ba8d3fbfe9d798c7984ca9eb5e (diff)
add findThread in cmake
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 831dbee..acb921e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,6 +55,7 @@ IF (ENABLE_VALIDATION)
ENDIF ()
FIND_PACKAGE(Vulkan REQUIRED)
+FIND_PACKAGE(Threads REQUIRED)
INCLUDE(GNUInstallDirs)
@@ -82,6 +83,7 @@ FUNCTION (setup_lib LibName)
TARGET_LINK_LIBRARIES("${LibName}"
PUBLIC
${Vulkan_LIBRARIES}
+ Threads::Threads
)
INSTALL(TARGETS "${LibName}"
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}