Skip to content

[wxwidgets] cmake integration failure #27316

@justinboneh

Description

@justinboneh

Host Environment

  • OS: Windows
  • Compiler:
    • Visual Studio 16 2019
    • CMake 3.24.2

To Reproduce

  1. .\vcpkg.exe install wxwidgets:x64-windows - finishes successfully
  2. On CMake, find_package(wxWidgets COMPONENTS base core gl adv aui html) - fails

Failure logs

CMake Error at E:/workspace/vcpkg/installed/x64-windows/share/wxwidgets/vcpkg-cmake-wrapper.cmake:62 (if):
if given arguments:

"WIN32" "AND" "CMAKE_HOST_WIN32" "AND" "dynamic" "STREQUAL" "static" "AND" "NOT" "wx::core" "IN_LIST" "wxWidgets_LIBRARIES"

Unknown arguments specified

CMakeError.log
CMakeOutput.log

Additional context

Commenting out the lines below solves the issue, as it's supposed to evaluate to false anyway ("dynamic" STREQUAL "static"):

if(WIN32 AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT "wx::core" IN_LIST wxWidgets_LIBRARIES)
find_package(EXPAT QUIET)
find_package(JPEG QUIET)
find_package(PNG QUIET)
find_package(TIFF QUIET)
find_package(ZLIB QUIET)
list(APPEND wxWidgets_LIBRARIES
${EXPAT_LIBRARIES}
${JPEG_LIBRARIES}
${PNG_LIBRARIES}
${TIFF_LIBRARIES}
${ZLIB_LIBRARIES}
)
endif()

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions