Host Environment
- OS: Windows
- Compiler:
- Visual Studio 16 2019
- CMake 3.24.2
To Reproduce
.\vcpkg.exe install wxwidgets:x64-windows - finishes successfully
- 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() |
Host Environment
To Reproduce
.\vcpkg.exe install wxwidgets:x64-windows- finishes successfullyfind_package(wxWidgets COMPONENTS base core gl adv aui html)- failsFailure logs
CMakeError.log
CMakeOutput.log
Additional context
Commenting out the lines below solves the issue, as it's supposed to evaluate to
falseanyway ("dynamic" STREQUAL "static"):vcpkg/ports/wxwidgets/vcpkg-cmake-wrapper.cmake
Lines 57 to 70 in 414cc95