Browse Source

FindwxWidgets: Fix finding both release and debug libs

In commit fe54989fcd (FindwxWidgets: Add support for wxQt, 2019-11-12,
v3.16.0-rc4~12^2~1) the internal `WX_FIND_LIBS` macro gained an argument
but not all call sites were updated.  Update the missing one now.

Fixes: #20005
Brad King 6 years ago
parent
commit
a5bb08a8c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindwxWidgets.cmake

+ 1 - 1
Modules/FindwxWidgets.cmake

@@ -649,7 +649,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
         # Find wxWidgets libraries.
         # Find wxWidgets libraries.
         WX_FIND_LIBS("${PF}" "${UNV}" "${UCD}" "${DBG}")
         WX_FIND_LIBS("${PF}" "${UNV}" "${UCD}" "${DBG}")
         if(WX_USE_REL_AND_DBG)
         if(WX_USE_REL_AND_DBG)
-          WX_FIND_LIBS("${UNV}" "${UCD}" "d")
+          WX_FIND_LIBS("${PF}" "${UNV}" "${UCD}" "d")
         endif()
         endif()
 
 
         # Settings for requested libs (i.e., include dir, libraries, etc.).
         # Settings for requested libs (i.e., include dir, libraries, etc.).