mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
8f4993b58c
This fixes #30361 Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
20 lines
868 B
Diff
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>
|