Skip to content

Commit

Permalink
set_property CXX_STANDARD 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektrikAkar committed Dec 8, 2023
1 parent 84b27fe commit 06d687a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@ enable_testing()

add_subdirectory(dtwc bin)


add_executable(dtwc_main
dtwc/main.cpp
)

target_link_libraries(dtwc_main
PRIVATE
dtwc++
project_warnings
project_options
)

# dtwc_setup_options()

Expand Down
15 changes: 3 additions & 12 deletions dtwc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ target_link_libraries(dtwc++
highs::highs
)

set_property(TARGET dtwc++ PROPERTY CXX_STANDARD 20)

if(DTWC_ENABLE_GUROBI)
message(STATUS "Gurobi is enabled!")
if(Gurobi_FOUND)
Expand All @@ -32,15 +34,4 @@ endif()


target_include_directories(dtwc++ PRIVATE ${range-v3_INCLUDE_DIRS} )
target_compile_definitions(dtwc++ PRIVATE ROOT_FOLDER="${PROJECT_SOURCE_DIR}")

add_executable(dtwc_main
main.cpp
)

target_link_libraries(dtwc_main
PRIVATE
dtwc++
project_warnings
project_options
)
target_compile_definitions(dtwc++ PRIVATE ROOT_FOLDER="${PROJECT_SOURCE_DIR}")

0 comments on commit 06d687a

Please sign in to comment.