From 901f8f350a71868fd837ca754eca0eba9745e178 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 17 Oct 2018 19:02:44 +0200 Subject: [PATCH] prevent building vkh if target already exists in another cmake proj --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- 2.47.3