From: Jean-Philippe Bruyère Date: Mon, 28 Feb 2022 08:01:22 +0000 (+0100) Subject: add findThread in cmake X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=6f83912aa49cffab33a2100b052c2fb70c52a92c;p=jp%2Fvkhelpers.git add findThread in cmake --- 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}