diff --git a/modules/find/FindMorseCommon.cmake b/modules/find/FindMorseCommon.cmake index 4bf6b40648c9d83401ff8c84c473bbab01b7d358..49b6619414ae88a964861699a3da1acb9788e13f 100644 --- a/modules/find/FindMorseCommon.cmake +++ b/modules/find/FindMorseCommon.cmake @@ -144,6 +144,7 @@ macro(morse_create_imported_target name) get_target_property(_CFLAGS PkgConfig::${name} INTERFACE_COMPILE_OPTIONS) get_target_property(_LDFLAGS PkgConfig::${name} INTERFACE_LINK_OPTIONS) + string(REGEX REPLACE "\"" "" _CFLAGS "${_CFLAGS}") set_target_properties(MORSE::${name} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_INCLUDES}") set_target_properties(MORSE::${name} PROPERTIES INTERFACE_LINK_DIRECTORIES "${_LIBDIRS}") set_target_properties(MORSE::${name} PROPERTIES INTERFACE_LINK_LIBRARIES "${_LIBRARIES}") @@ -163,6 +164,7 @@ macro(morse_create_imported_target name) set_target_properties(MORSE::${name} PROPERTIES INTERFACE_LINK_LIBRARIES "${${name}_LIBRARIES}") endif() if (${name}_CFLAGS_OTHER) + string(REGEX REPLACE "\"" "" ${name}_CFLAGS_OTHER "${${name}_CFLAGS_OTHER}") set_target_properties(MORSE::${name} PROPERTIES INTERFACE_COMPILE_OPTIONS "${${name}_CFLAGS_OTHER}") endif() if (${name}_LDFLAGS_OTHER)