File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -407,6 +407,7 @@ endif(BUILD_INTEL_BACKLIGHT)
407407if (BUILD_TESTS)
408408 # Create a library strictly for testing
409409 add_library (conky_core ${conky_sources} ${optional_sources} )
410+ target_compile_features (conky_core PUBLIC cxx_std_17)
410411 add_dependencies (conky_core generated_hdr_files)
411412 target_link_libraries (conky_core ${conky_libs} )
412413 add_executable (conky main.cc)
@@ -418,6 +419,7 @@ if(BUILD_TESTS)
418419 ARCHIVE DESTINATION ${LIB_INSTALL_DIR} )
419420else ()
420421 add_executable (conky main.cc ${conky_sources} ${optional_sources} )
422+ target_compile_features (conky_core PRIVATE cxx_std_17)
421423 add_dependencies (conky generated_hdr_files)
422424 target_link_libraries (conky ${conky_libs} )
423425endif ()
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ file(GLOB mock_sources mock/*.cc)
2727add_library (Catch2 STATIC catch2/catch_amalgamated.cpp)
2828
2929add_executable (test -conky test -common.cc ${test_sources} )
30+ target_compile_features (test -conky PRIVATE cxx_std_17)
3031target_include_directories (test -conky
3132 PUBLIC
3233 ${CMAKE_SOURCE_DIR} /src
You can’t perform that action at this time.
0 commit comments