diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2017-12-01 20:59:00 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2017-12-01 20:59:00 +0300 |
commit | 6cdb456a09468c9d4cf49f3cbb5155211610463c (patch) | |
tree | 992992f14a5fc02e0e8aba90a1458abb931b8ee0 | |
parent | 29d8a51d03741063c05ea0d4b517a3284c13634f (diff) |
c++14. compiles on ubuntu 16.04
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e08391f6..47858a87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,8 +8,8 @@ set(CMAKE_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}) set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}) -set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fPIC -O3 -Ofast -m64 -march=native -funroll-loops -ffinite-math-only -Wno-unused-result -Wno-deprecated -pthread") -set(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fPIC -g -O0 -m64 -march=native -funroll-loops -ffinite-math-only -Wno-unused-result -Wno-deprecated -pthread") +set(CMAKE_CXX_FLAGS_RELEASE "-std=c++14 -fPIC -O3 -Ofast -m64 -march=native -funroll-loops -ffinite-math-only -Wno-unused-result -Wno-deprecated -pthread") +set(CMAKE_CXX_FLAGS_DEBUG "-std=c++14 -fPIC -g -O0 -m64 -march=native -funroll-loops -ffinite-math-only -Wno-unused-result -Wno-deprecated -pthread") set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE} -g -pg") set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_RELEASE}) |