build: all the targets now set C++20 as the minimum required version

This commit is contained in:
Mateusz Pusz
2024-01-08 13:02:02 +01:00
parent 01dbd02519
commit 5293589900
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -62,6 +62,7 @@ function(add_mp_units_module name target_name)
# define the target for a module
add_library(${target_name} ${SCOPE})
target_compile_features(${target_name} INTERFACE cxx_std_20)
target_link_libraries(${target_name} ${${projectPrefix}TARGET_SCOPE} ${ARG_DEPENDENCIES})
set_target_properties(${target_name} PROPERTIES EXPORT_NAME ${name})
add_library(mp-units::${name} ALIAS ${target_name})
-1
View File
@@ -77,7 +77,6 @@ add_mp_units_module(
MODULE_INTERFACE_UNIT mp-units-core.cpp
)
target_compile_features(mp-units-core INTERFACE cxx_std_20)
target_compile_definitions(
mp-units-core ${${projectPrefix}TARGET_SCOPE} ${projectPrefix}USE_LIBFMT=$<BOOL:${${projectPrefix}USE_LIBFMT}>
)