diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-04 21:22:02 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-07 10:06:08 (GMT) |
commit | 2faa3f6c55d2288316419f3efb8a483904a295f2 (patch) | |
tree | 8f4227f0e5299b5f6647e2e94cd7d52e55e643f5 /CMakeLists.txt | |
parent | 75e87e3db402c80390fa05c6b36ffab27089a46b (diff) | |
download | CMake-2faa3f6c55d2288316419f3efb8a483904a295f2.zip CMake-2faa3f6c55d2288316419f3efb8a483904a295f2.tar.gz CMake-2faa3f6c55d2288316419f3efb8a483904a295f2.tar.bz2 |
Refactoring: Third-parties public headers are under cm3p prefix
Fixes: #20666
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 32a483d..166b664 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -376,10 +376,13 @@ macro (CMAKE_BUILD_UTILITIES) include_directories(SYSTEM "${CMake_SOURCE_DIR}/Utilities/std") endif() - include_directories( - ${CMake_BINARY_DIR}/Utilities - ${CMake_SOURCE_DIR}/Utilities - ) + include_directories("${CMake_BINARY_DIR}/Utilities") + if ((CMAKE_SYSTEM_NAME STREQUAL "AIX" OR CMAKE_SYSTEM_NAME STREQUAL "OS400") AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + # using -isystem option generate error "template with C linkage" + include_directories("${CMake_SOURCE_DIR}/Utilities") + else() + include_directories(SYSTEM "${CMake_SOURCE_DIR}/Utilities") + endif() #--------------------------------------------------------------------- # Build CMake std library for CMake and CTest. |