diff options
author | Brad King <brad.king@kitware.com> | 2020-05-08 12:18:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-05-08 12:18:17 (GMT) |
commit | 171bf5fa92076dd177d7fd5a611440ac0f2597b4 (patch) | |
tree | fc19d383bfd94a95ce05210fe8ea349c222498fd /CMakeLists.txt | |
parent | 3a0ea8f93a790ab7a9b7d6d11f09de55220183b0 (diff) | |
parent | 2faa3f6c55d2288316419f3efb8a483904a295f2 (diff) | |
download | CMake-171bf5fa92076dd177d7fd5a611440ac0f2597b4.zip CMake-171bf5fa92076dd177d7fd5a611440ac0f2597b4.tar.gz CMake-171bf5fa92076dd177d7fd5a611440ac0f2597b4.tar.bz2 |
Merge topic 'third-parties-layout'
2faa3f6c55 Refactoring: Third-parties public headers are under cm3p prefix
75e87e3db4 bootstrap: update list of problematic files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4705
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. |