From b27e0ba7729405d9171873b73b881aabed8f24c6 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 18 Nov 2017 00:28:54 +0100 Subject: [PATCH] Make condition for bundled c++utilities more generic --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1434226..fac24ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,8 +47,9 @@ endif() # find c++utilities find_package(c++utilities 4.12.0 REQUIRED) -# use the source directory of c++utilities for includes (rather than the location where headers are going to be installed) -if(BUNDLED_CPP_UTILITIES_PATH) +# use the source directory of c++utilities for includes rather than the location where headers are going to be installed +# note: this enables the tests to find the header files for c++utilities in case it is built within the same project +if(CPP_UTILITIES_SOURCE_DIR) set(CPP_UTILITIES_INCLUDE_DIRS "${CPP_UTILITIES_SOURCE_DIR}/..") endif()