From: Jean-Philippe Bruyère Date: Wed, 17 Oct 2018 17:02:44 +0000 (+0200) Subject: prevent building vkh if target already exists in another cmake proj X-Git-Tag: v0.1-alpha~107^2~7 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=901f8f350a71868fd837ca754eca0eba9745e178;p=jp%2Fvkvg.git prevent building vkh if target already exists in another cmake proj --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d7b90ca..671622b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,9 @@ if (VULKAN_SDK) SET(ENV{VK_LAYER_PATH} "${VULKAN_SDK}/etc/explicit_layer.d") endif () -add_subdirectory (vkh) +if (NOT TARGET vkh_static) + add_subdirectory (vkh) +endif() #SET(ENABLE_VALIDATION OFF CACHE BOOL "Enable vulkan validation layer")