mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
fix: setting cxx_std_20
fixed for library modules
This commit is contained in:
@@ -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})
|
||||
|
Reference in New Issue
Block a user