Skip to content

Commit

Permalink
add c++ std flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Feb 6, 2024
1 parent af0240f commit d80eff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"-DMC_USE_SMALL_VECTOR",
"-O3",
"-DNDEBUG",
"-std=c++17",
]


Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ file(GLOB TEST_SRC_FILES ${PROJECT_SOURCE_DIR}/tests/test_*.cpp)

foreach(SRC ${TEST_SRC_FILES})
get_filename_component(test_name ${SRC} NAME_WE)
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS "-fexceptions")
set_source_files_properties(${SRC} PROPERTIES COMPILE_FLAGS "-fexceptions -std=c++17")
add_executable(${test_name} ${SRC})
add_dependencies(${test_name} gtest)
target_link_libraries(${test_name}
Expand Down

0 comments on commit d80eff1

Please sign in to comment.