forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wxwidgets] Temporary apply patch from upstream to fix wx-config when…
… NanoSVG is used. (microsoft#30392) This fixes microsoft#30361 Signed-off-by: Vitalii Koshura <[email protected]>
- Loading branch information
Showing
5 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters