Make condition for bundled c++utilities more generic

This commit is contained in:
Martchus 2017-11-18 00:28:54 +01:00
parent 86a577748e
commit b27e0ba772
1 changed files with 3 additions and 2 deletions

View File

@ -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()