diff options
author | Brad King <brad.king@kitware.com> | 2019-01-30 15:39:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-30 15:39:41 (GMT) |
commit | a37614667d2a1d7d3e4db5e1ec8df644bfbe39fa (patch) | |
tree | cc41b9abb5b1b349b983b4b3199be4061632038a /CMakeLists.txt | |
parent | e3b26f0004e20c11818e8c6cdd6c778c379d8c67 (diff) | |
download | CMake-a37614667d2a1d7d3e4db5e1ec8df644bfbe39fa.zip CMake-a37614667d2a1d7d3e4db5e1ec8df644bfbe39fa.tar.gz CMake-a37614667d2a1d7d3e4db5e1ec8df644bfbe39fa.tar.bz2 |
Configure KWSys to honor CMake_NO_CXX_STANDARD
KWSys now computes a default `CMAKE_CXX_STANDARD` value if it is
not told what standard to use. When `CMake_NO_CXX_STANDARD` is
enabled, tell KWSys not to do that.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 75a0b52..bd130ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -332,6 +332,9 @@ macro (CMAKE_BUILD_UTILITIES) set(KWSYS_USE_ConsoleBuf 1) set(KWSYS_HEADER_ROOT ${CMake_BINARY_DIR}/Source) set(KWSYS_INSTALL_DOC_DIR "${CMAKE_DOC_DIR}") + if(CMake_NO_CXX_STANDARD) + set(KWSYS_CXX_STANDARD "") + endif() add_subdirectory(Source/kwsys) set(kwsys_folder "Utilities/KWSys") CMAKE_SET_TARGET_FOLDER(${KWSYS_NAMESPACE} "${kwsys_folder}") |