diff --git a/CMakeLists.txt b/CMakeLists.txt index abc7d55..7596e0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ endif() # find c++utilities set(CONFIGURATION_PACKAGE_SUFFIX "" CACHE STRING "sets the suffix for find_package() calls to packages configured via c++utilities") -find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED) +find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.10.0 REQUIRED) # find RapidJSON if(NOT RapidJSON_FOUND) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index c4ec92f..f555b2a 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -33,13 +33,7 @@ list(APPEND HEADER_FILES binary/reflector.h binary/reflector-boosthana.h binary/ list(APPEND TEST_SRC_FILES tests/traits.cpp tests/binaryreflector.cpp tests/binaryreflector-boosthana.cpp) # add (only) the CMake module and include dirs for c++utilities because we're not depending on the actual library -list(APPEND CMAKE_MODULE_PATH ${CPP_UTILITIES_MODULE_DIRS}) -if (CPP_UTILITIES_SOURCE_DIR) - list(APPEND PUBLIC_INCLUDE_DIRS $ - $) -else () - list(APPEND PUBLIC_INCLUDE_DIRS "${CPP_UTILITIES_INCLUDE_DIRS}") -endif () +use_cpp_utilities(ONLY_HEADERS VISIBILITY PUBLIC) # find RapidJSON, also add only the include dirs because RapidJSON is a header-only library if (RapidJSON_FOUND)