vcpkg/ports/wxwidgets/fix-nanosvg.patch
Vitalii Koshura 8f4993b58c
[wxwidgets] Temporary apply patch from upstream to fix wx-config when NanoSVG is used. (#30392)
This fixes #30361

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-03-28 14:46:38 -07:00

20 lines
868 B
Diff

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 $<$<CONFIG:DEBUG>:LIB_PATH>
# Or $<$<NOT:$<CONFIG:DEBUG>>:LIB_PATH>