lszl84 / wx_cmake_template

A template for multiplatform WxWidgets projects using CMake
MIT License
143 stars 50 forks source link

Build fails with wxWidgets 3.2 #7

Open lszl84 opened 2 years ago

lszl84 commented 2 years ago

Last wxWidgets version that works: v3.1.4.

Version 3.2 and master branch fails to build on Mac and Windows. Changing external project definition in thirdparty/wxwidgets/CMakeLists.txt to:

 ExternalProject_Add(wxWidgets_external
        GIT_REPOSITORY
        https://github.com/wxWidgets/wxWidgets.git
        GIT_TAG
        master
        UPDATE_COMMAND
        ""
        CMAKE_ARGS
        -DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
        -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
        -DwxBUILD_SHARED=OFF
        CMAKE_CACHE_ARGS
        TEST_AFTER_INSTALL
        0
        DOWNLOAD_NO_PROGRESS
        1
        LOG_CONFIGURE
        1
        LOG_BUILD
        1
        LOG_INSTALL
        1
    )

fixes the issue on Mac but NOT on Windows.

Sticking to v3.1.4 for now and investigating the bug.