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:
parent
d7923b82ad
commit
b5906ed03a
|
@ -48,7 +48,9 @@ if(NOT DEFINED CMAKE_CXX_STANDARD AND NOT CMake_NO_CXX_STANDARD)
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
include(${CMake_SOURCE_DIR}/Source/Checks/cm_cxx11_unordered_map.cmake)
|
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 to set the internal encoding of CMake to UTF-8
|
||||||
option(CMAKE_ENCODING_UTF8 "Use UTF-8 encoding internally." ON)
|
option(CMAKE_ENCODING_UTF8 "Use UTF-8 encoding internally." ON)
|
||||||
|
|
Loading…
Reference in New Issue