# Under CMP0199 OLD, $ matches the selected configuration and every # entry in MAP_IMPORTED_CONFIG_. Under NEW, it should only match the # configuration of the consuming target and the selected configuration of the # library being consumed. function(do_mapped_config_test) add_library(lib_mapped INTERFACE IMPORTED) set_target_properties(lib_mapped PROPERTIES IMPORTED_CONFIGURATIONS "TEST" INTERFACE_COMPILE_DEFINITIONS "$<$:DEBUG>;$<$:RELEASE>;$<$:TEST>" MAP_IMPORTED_CONFIG_RELEASE "RELEASE;DEBUG;TEST" ) add_executable(exe_mapped configtest.c) target_compile_definitions(exe_mapped PRIVATE ${ARGN}) target_link_libraries(exe_mapped PRIVATE lib_mapped) endfunction()