CMake: Set correct variable in AppVeyor build

CONFIG mode uses the <packageName>_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.
This commit is contained in:
Maarten Bent 2022-06-18 16:01:12 +02:00
parent 629866d71b
commit 818135942f

View File

@ -116,11 +116,11 @@ if NOT "%SKIPINSTALL%"=="1" (
echo. echo.
echo --- Test installed library echo --- Test installed library
echo. echo.
set WXWIN=%WX_INSTALL_PATH% set wxWidgets_DIR=%WX_INSTALL_PATH%
mkdir build_cmake_install_test mkdir build_cmake_install_test
pushd build_cmake_install_test pushd build_cmake_install_test
echo --- Configure minimal sample echo --- Configure minimal sample
cmake -G "%GENERATOR%" ..\samples\minimal cmake -G "%GENERATOR%" -DCMAKE_CONFIGURATION_TYPES=%CONFIGURATION% ..\samples\minimal
if ERRORLEVEL 1 goto error if ERRORLEVEL 1 goto error
echo --- Building minimal sample with installed library echo --- Building minimal sample with installed library
cmake --build . --config %CONFIGURATION% -- %CMAKE_LOGGER% cmake --build . --config %CONFIGURATION% -- %CMAKE_LOGGER%