diff --git a/CMakeLists.txt b/CMakeLists.txt index 89cda44bca..8092be9d1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,13 +142,14 @@ set(ABACUS_BIN_PATH ${CMAKE_CURRENT_BINARY_DIR}/${ABACUS_BIN_NAME}) include_directories(${ABACUS_SOURCE_DIR}) include_directories(${ABACUS_SOURCE_DIR}/module_base/module_container) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + add_executable(${ABACUS_BIN_NAME} source/main.cpp) if(ENABLE_COVERAGE) add_coverage(${ABACUS_BIN_NAME}) endif() -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) macro(set_if_higher VARIABLE VALUE) if(${VARIABLE} LESS ${VALUE}) set(${VARIABLE} ${VALUE})