Check for std::unordered_map only if we are building CMake

When CMake_TEST_EXTERNAL_CMAKE is set then we are not actually
building CMake so we do not need this check.
This commit is contained in:
Brad King 2015-05-20 11:35:16 -04:00
parent d7923b82ad
commit b5906ed03a
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ if(NOT DEFINED CMAKE_CXX_STANDARD AND NOT CMake_NO_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
endif()
endif()
if(NOT CMake_TEST_EXTERNAL_CMAKE)
include(${CMake_SOURCE_DIR}/Source/Checks/cm_cxx11_unordered_map.cmake)
endif()
# option to set the internal encoding of CMake to UTF-8
option(CMAKE_ENCODING_UTF8 "Use UTF-8 encoding internally." ON)