From 818135942f4b529ebd1bca5d222d61d08b99c524 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 18 Jun 2022 16:01:12 +0200 Subject: [PATCH] CMake: Set correct variable in AppVeyor build CONFIG mode uses the _DIR variable. CMake has an error when generating the solution because the lib/vc_x64_dll/mswud directory does not exist; it is not built and installed. So only add the used configuration. --- build/tools/appveyor.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/tools/appveyor.bat b/build/tools/appveyor.bat index bddcd5d9c7..ed8c6800e4 100644 --- a/build/tools/appveyor.bat +++ b/build/tools/appveyor.bat @@ -116,11 +116,11 @@ if NOT "%SKIPINSTALL%"=="1" ( echo. echo --- Test installed library echo. - set WXWIN=%WX_INSTALL_PATH% + set wxWidgets_DIR=%WX_INSTALL_PATH% mkdir build_cmake_install_test pushd build_cmake_install_test echo --- Configure minimal sample - cmake -G "%GENERATOR%" ..\samples\minimal + cmake -G "%GENERATOR%" -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% ..\samples\minimal if ERRORLEVEL 1 goto error echo --- Building minimal sample with installed library cmake --build . --config %CONFIGURATION% -- %CMAKE_LOGGER%