summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-20 05:29:54 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-20 05:29:54 -0500
commit9c9534d562afc21f79d1c969919489a5394e108d (patch)
treebab630a21e771501aedbe181da0de22d9d9444a4 /CMakeLists.txt
parenta3e84aa1551d4aeaa8d346352dc6a1adb031f7ab (diff)
downloadfork-ledger-9c9534d562afc21f79d1c969919489a5394e108d.tar.gz
fork-ledger-9c9534d562afc21f79d1c969919489a5394e108d.tar.bz2
fork-ledger-9c9534d562afc21f79d1c969919489a5394e108d.zip
Disable the check for C++11 for now
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt56
1 files changed, 29 insertions, 27 deletions
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 <regex>
-#include <vector>
-#include <iostream>
-
-int main() {
- std::vector<int> 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 <regex>
+##include <vector>
+##include <iostream>
+#
+#int main() {
+# std::vector<int> 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()
########################################################################