2022-05-06 17:57:49 -04:00
|
|
|
diff --git a/build/cmake/config.cmake b/build/cmake/config.cmake
|
2022-09-14 07:31:27 +08:00
|
|
|
index b359560..7504458 100644
|
2022-05-06 17:57:49 -04:00
|
|
|
--- a/build/cmake/config.cmake
|
|
|
|
+++ b/build/cmake/config.cmake
|
|
|
|
@@ -39,8 +39,14 @@ macro(wx_get_dependencies var lib)
|
|
|
|
else()
|
|
|
|
# For the value like $<$<CONFIG:DEBUG>:LIB_PATH>
|
|
|
|
# Or $<$<NOT:$<CONFIG:DEBUG>>:LIB_PATH>
|
|
|
|
- string(REGEX REPLACE "^.+>:(.+)>$" "\\1" dep_name ${dep})
|
|
|
|
- if (NOT dep_name)
|
|
|
|
+ if(dep MATCHES "^(.+>):(.+)>$")
|
|
|
|
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND CMAKE_MATCH_1 STREQUAL [[$<$<NOT:$<CONFIG:DEBUG>>]])
|
|
|
|
+ continue()
|
|
|
|
+ elseif(CMAKE_BUILD_TYPE STREQUAL "Release" AND CMAKE_MATCH_1 STREQUAL [[$<$<CONFIG:DEBUG>]])
|
|
|
|
+ continue()
|
|
|
|
+ endif()
|
|
|
|
+ set(dep_name "${CMAKE_MATCH_2}")
|
|
|
|
+ else()
|
|
|
|
set(dep_name ${dep})
|
|
|
|
endif()
|
|
|
|
endif()
|