fix: setting cxx_std_20 fixed for library modules

This commit is contained in:
Mateusz Pusz
2024-01-08 13:11:05 +01:00
parent 2c0ebd3ec8
commit 09873c203c

View File

@@ -62,7 +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_compile_features(${target_name} ${${projectPrefix}TARGET_SCOPE} 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})