mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 11:28:59 +08:00
ea11604579
* [wxwidgets] Fix #4756 * [wxwidgets] Avoid replacing FindwxWidgets from CMake * [wxwidgets] Provide usage information * [gppanel] Use built-in CMake module * [wxchartdir] Use built-in CMake module * [wxwidgets] Fixup for applocal-ing * [wxwidgets] Fix osx builds * Update port_versions * [gppanel][wxchartdir][wxwidgets] Change versioning schemas Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
20 lines
965 B
CMake
20 lines
965 B
CMake
set(wxWidgets_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../.." CACHE INTERNAL "" FORCE)
|
|
set(WX_ROOT_DIR "${wxWidgets_ROOT_DIR}")
|
|
set(wxWidgets_LIB_DIR "${wxWidgets_ROOT_DIR}/lib" CACHE INTERNAL "" FORCE)
|
|
set(WX_LIB_DIR "${wxWidgets_LIB_DIR}")
|
|
find_library(WX_based NAMES wxbase31ud PATHS "${wxWidgets_ROOT_DIR}/debug/lib" NO_DEFAULT_PATH)
|
|
file(GLOB WX_DEBUG_LIBS "${wxWidgets_ROOT_DIR}/debug/lib/wx*d_*.lib")
|
|
foreach(WX_DEBUG_LIB ${WX_DEBUG_LIBS})
|
|
string(REGEX REPLACE ".*wx([^/]*)d_([^/\\.]*)\\.[^/\\.]*\$" "WX_\\2d" varname "${WX_DEBUG_LIB}")
|
|
set(${varname} "${WX_DEBUG_LIB}" CACHE INTERNAL "" FORCE)
|
|
endforeach()
|
|
_find_package(${ARGS})
|
|
find_package(ZLIB QUIET)
|
|
find_package(libpng CONFIG QUIET)
|
|
find_package(TIFF QUIET)
|
|
find_package(expat CONFIG QUIET)
|
|
|
|
if(wxWidgets_LIBRARIES AND NOT wxWidgets_LIBRARIES MATCHES "TIFF::TIFF;png;expat::expat;ZLIB::ZLIB")
|
|
list(APPEND wxWidgets_LIBRARIES "TIFF::TIFF;png;expat::expat;ZLIB::ZLIB")
|
|
endif()
|