Fix unordered_map check.

This commit is contained in:
John Maguire 2012-11-22 13:31:18 +01:00
parent 8bbcd6b760
commit d6b84558f6
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ if (CMAKE_CXX_COMPILER MATCHES ".*clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-uninitialized")
endif ()
set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
check_cxx_source_compiles(
"#include <unordered_map>
int main() {
@ -24,6 +25,7 @@ check_cxx_source_compiles(
}
"
USE_STD_UNORDERED_MAP)
unset(CMAKE_REQUIRED_FLAGS)
if (UNIX AND NOT APPLE)
set(LINUX 1)