Skip to content

Commit 887f41a

Browse files
committed
improve cmake: set C++17 standard for tests executable
1 parent 1f519da commit 887f41a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ if(OPENDRIVE_BUILD_TESTS)
7878
include(Catch)
7979

8080
add_executable(tests tests/test.cpp)
81+
set_target_properties(tests PROPERTIES
82+
CXX_STANDARD 17
83+
CXX_STANDARD_REQUIRED ON
84+
)
8185
target_link_libraries(tests PRIVATE OpenDrive Catch2::Catch2WithMain)
8286
catch_discover_tests(tests WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests)
8387
endif()

0 commit comments

Comments
 (0)