From 1a2a81098ee8ab079d5234528fc8e23e6ca2e6f6 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 23 Jan 2017 21:49:26 +1100 Subject: [PATCH] cmake: export CRUFT_VK_FOUND variable --- CMakeLists.txt | 6 ++++++ cmake | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bf01ab..dd67fb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,12 @@ list (APPEND sources ##----------------------------------------------------------------------------- add_library (cruft-vk STATIC ${sources}) +############################################################################### +get_directory_property (HAS_PARENT PARENT_DIRECTORY) +if (HAS_PARENT) + set (CRUFT_VK_FOUND 1 PARENT_SCOPE) +endif () + ############################################################################### configure_file(libcruft-vk-system.pc.in libcruft-vk.pc) diff --git a/cmake b/cmake index 2d9f884..7df08f6 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 2d9f884cbc3d2312582fd8009712264855e3f0b7 +Subproject commit 7df08f681817fec591dd77f7be23eff5c6778aaa