diff options
author | John Wiegley <johnw@newartisans.com> | 2014-04-17 14:19:55 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-04-17 14:34:36 -0500 |
commit | 7be70aab59051aa358547a3e530cc95490c04232 (patch) | |
tree | a8127b99acc041d746d417528e4c6dcce00c5c5a /CMakeLists.txt | |
parent | 0ef825640963d60e4733553ff0e8c590c0ce2c3b (diff) | |
download | fork-ledger-7be70aab59051aa358547a3e530cc95490c04232.tar.gz fork-ledger-7be70aab59051aa358547a3e530cc95490c04232.tar.bz2 fork-ledger-7be70aab59051aa358547a3e530cc95490c04232.zip |
Require the use of C++11
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d709338..e4eb091b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ set(Ledger_VERSION_DATE 20140417) enable_testing() +add_definitions(-std=c++11) + ######################################################################## option(USE_PYTHON "Build support for the Python scripting bridge" OFF) @@ -148,37 +150,6 @@ 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() - set(HAVE_CXX11 0) -#endif() -# -#cmake_pop_check_state() - ######################################################################## include_directories(${CMAKE_INCLUDE_PATH}) |