From 9c9534d562afc21f79d1c969919489a5394e108d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 May 2012 05:29:54 -0500 Subject: Disable the check for C++11 for now --- CMakeLists.txt | 56 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 27 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d0ea97d..277de435 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,34 +150,36 @@ endif() cmake_pop_check_state() -cmake_push_check_state() - -set(CMAKE_REQUIRED_FLAGS -std=c++11) -set(CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH}) - -check_cxx_source_runs(" -#include -#include -#include - -int main() { - std::vector x {0, 1, 2, 3, 4}; - for (auto i : x) - std::cout << i << std::endl; - - std::regex r(\"foo\"); - std::cout << std::regex_match(\"foobar\", r) << std::endl; - return 0; -}" CXX11_RUNS) - -cmake_pop_check_state() - -if(CXX11_RUNS) - set(HAVE_CXX11 1) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") -else() +#cmake_push_check_state() +# +#set(CMAKE_REQUIRED_FLAGS -std=c++11) +#set(CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH}) +# +#check_cxx_source_runs(" +##include +##include +##include +# +#int main() { +# std::vector x {0, 1, 2, 3, 4}; +# for (auto i : x) +# std::cout << i << std::endl; +# +# std::regex r(\"foo\"); +# std::cout << std::regex_match(\"foobar\", r) << std::endl; +# return 0; +#}" CXX11_RUNS) +# +#cmake_pop_check_state() +# +#if(CXX11_RUNS) +# set(HAVE_CXX11 1) +# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") +#else() set(HAVE_CXX11 0) -endif() +#endif() +# +#cmake_pop_check_state() ######################################################################## -- cgit v1.2.3