From a5df64c905ca23492c7b38ba8e840e256cc86a46 Mon Sep 17 00:00:00 2001 From: Jean Christophe Roques Date: Tue, 23 Jul 2024 13:05:33 +0200 Subject: [PATCH] don't use ninja --- .github/scripts/windows-agent-compile.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/scripts/windows-agent-compile.ps1 b/.github/scripts/windows-agent-compile.ps1 index ca0394f0d0..c5cc1abe74 100644 --- a/.github/scripts/windows-agent-compile.ps1 +++ b/.github/scripts/windows-agent-compile.ps1 @@ -40,17 +40,15 @@ if ( $? -ne $true ) { 7z a $file_name_extension build_windows\vcpkg_installed Write-Host "Upload binary archive" aws s3 cp $file_name_extension s3://centreon-collect-robot-report/$file_name_extension - Write-Host "create CMake files" - cmake -DCMAKE_BUILD_TYPE=Release -DWITH_TESTING=On -DWINDOWS=On -DBUILD_FROM_CACHE=On -GNinja -S. -Bbuild_windows } else { 7z x $file_name_extension - Write-Host "Create cmake files from binary-cache downloaded without use vcpkg" - } +cmake -DCMAKE_BUILD_TYPE=Release -DWITH_TESTING=On -DWINDOWS=On -DBUILD_FROM_CACHE=On -S. -DVCPKG_CRT_LINKAGE=dynamic -DBUILD_SHARED_LIBS=OFF -Bbuild_windows + Write-Host "build agent and tests" cmake --build build_windows