Skip to content

Commit

Permalink
Fix: compile failure of main.cpp (#4638)
Browse files Browse the repository at this point in the history
* Fix: compile failure of main.cpp

* change the order of CMake

* Update CMakeLists.txt

---------

Co-authored-by: Chun Cai <[email protected]>
  • Loading branch information
Qianruipku and caic99 authored Jul 11, 2024
1 parent 874cb16 commit a115155
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit a115155

Please sign in to comment.