Skip to content

Remove cxx_std_20 Feature #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions components/format/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@ cpmaddpackage("gh:fmtlib/fmt#10.0.0")
add_library(errors_format src/format.cpp)
target_include_directories(errors_format PUBLIC include)
target_link_libraries(errors_format PUBLIC errors fmt)
target_compile_features(errors_format PRIVATE cxx_std_20)

if(NOT_SUBPROJECT)
if (BUILD_TESTING)
# Append the main library properties instead of linking the library.
get_target_property(errors_format_SOURCES errors_format SOURCES)
get_target_property(errors_format_INCLUDES errors_format INCLUDE_DIRECTORIES)
get_target_property(errors_format_LIBRARIES errors_format LINK_LIBRARIES)
get_target_property(errors_format_FEATURES errors_format COMPILE_FEATURES)

# Build tests for the main library
add_executable(errors_format_test test/format_test.cpp ${errors_format_SOURCES})
target_include_directories(errors_format_test PRIVATE ${errors_format_INCLUDES})
target_link_libraries(errors_format_test PRIVATE Catch2::Catch2WithMain ${errors_format_LIBRARIES})
target_compile_features(errors_format_test PRIVATE ${errors_format_FEATURES})

# Enable support to check for test coverage
if(NOT MSVC)
Expand Down