From 74b4287b6ed45529daaa3a9f2abf3322765f12fa Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 6 Nov 2020 10:16:02 +0100 Subject: [PATCH] workaround cmake issue cmake does not properly interpret the SYSTEM marker in lists of include directories. this causes issues downstream when using dunecontrol / the in-tree cmake config files. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb3dc491b..af029aab2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,8 +76,9 @@ macro (config_hook) # For this project add_definitions(-DFMT_HEADER_ONLY) - list(APPEND EXTRA_INCLUDES SYSTEM ${PROJECT_SOURCE_DIR}/external/fmtlib/include) + include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/external/fmtlib/include) include_directories(${EXTRA_INCLUDES} ${PROJECT_BINARY_DIR}/include) + list(APPEND EXTRA_INCLUDES ${PROJECT_SOURCE_DIR}/external/fmtlib/include) # For downstreams list(APPEND EXTRA_INCLUDES ${PROJECT_BINARY_DIR}/include)