diff --git "a/build/cmake/config.cmake" "b/build/cmake/config.cmake" index b68d167dac..5de1fd19ad 100644 --- "a/build/cmake/config.cmake" +++ "b/build/cmake/config.cmake" @@ -40,6 +40,14 @@ macro(wx_get_dependencies var lib) else() get_target_property(dep_name ${dep} OUTPUT_NAME) endif() + if(NOT dep_name) + set(prop_suffix) + if (CMAKE_BUILD_TYPE) + string(TOUPPER "${CMAKE_BUILD_TYPE}" prop_suffix) + set(prop_suffix "_${prop_suffix}") + endif() + get_target_property(dep_name ${dep} LOCATION${prop_suffix}) + endif() else() # For the value like $<$:LIB_PATH> # Or $<$>:LIB_PATH>