mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-17 10:07:36 +00:00
fix find_package(wxWidgets) issue in release build (#8405)
This commit is contained in:
parent
da233c38ec
commit
47c6b3f557
23
ports/plplot/0005-wxwidgets-fix-rel-lib-dir.patch
Normal file
23
ports/plplot/0005-wxwidgets-fix-rel-lib-dir.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff --git a/cmake/modules/FindwxWidgets.cmake b/cmake/modules/FindwxWidgets.cmake
|
||||
index eaaa358..a68683c 100644
|
||||
--- a/cmake/modules/FindwxWidgets.cmake
|
||||
+++ b/cmake/modules/FindwxWidgets.cmake
|
||||
@@ -516,13 +516,11 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
||||
endif()
|
||||
endif()
|
||||
if(VCPKG_TARGET_TRIPLET)
|
||||
- find_library(wxWidgets_LIB_DIR
|
||||
- NAMES
|
||||
- wxmsw31ud_core.lib
|
||||
- wxmsw31u_core.lib
|
||||
- PATHS
|
||||
- DOC "Path to wxWidgets libraries"
|
||||
- )
|
||||
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
+ find_library(wxWidgets_LIB_DIR NAMES wxmsw31ud_core.lib DOC "Path to wxWidgets libraries")
|
||||
+ else()
|
||||
+ find_library(wxWidgets_LIB_DIR NAMES wxmsw31u_core.lib DOC "Path to wxWidgets libraries")
|
||||
+ endif()
|
||||
get_filename_component(wxWidgets_LIB_DIR ${wxWidgets_LIB_DIR} DIRECTORY)
|
||||
elseif(BUILD_SHARED_LIBS)
|
||||
find_path(wxWidgets_LIB_DIR
|
@ -1,5 +1,5 @@
|
||||
Source: plplot
|
||||
Version: 5.13.0-2
|
||||
Version: 5.13.0-3
|
||||
Build-Depends: freetype, zlib, libpng, bzip2
|
||||
Description: PLplot is a cross-platform software package for creating scientific plots whose (UTF-8) plot symbols and text are limited in practice only by what Unicode-aware system fonts are installed on a user's computer.
|
||||
|
||||
|
@ -18,6 +18,7 @@ vcpkg_extract_source_archive_ex(
|
||||
"${CMAKE_CURRENT_LIST_DIR}/0002-wxwidgets-dev-fixes.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/install-interface-include-directories.patch"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/use-math-h-nan.patch"
|
||||
"0005-wxwidgets-fix-rel-lib-dir.patch"
|
||||
)
|
||||
|
||||
set(BUILD_with_wxwidgets OFF)
|
||||
|
Loading…
x
Reference in New Issue
Block a user