1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

cmake: move CMAKE_VS_GLOBALS setting to CI configs

To not force this setting for local builds where they might serve
a good purpose.

It makes our CI runs slightly faster and we don't need to track
file changes in unattended, single, CI runs.

Cherry-picked from #1031
This commit is contained in:
Viktor Szakats
2023-05-04 22:17:03 +00:00
parent f12e25af30
commit 1458e28f36
3 changed files with 2 additions and 4 deletions

View File

@@ -222,6 +222,7 @@ jobs:
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_GENERATOR_PLATFORM=${archgen} \
-DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-${{ matrix.plat }} \
-DCMAKE_VS_GLOBALS=TrackFileAccess=false \
-DENABLE_WERROR=ON \
-DENABLE_DEBUG_LOGGING=${{ matrix.log }} \
-DBUILD_SHARED_LIBS=${{ matrix.shared }} \

View File

@@ -91,10 +91,6 @@ install(
docs/AUTHORS docs/BINDINGS.md docs/HACKING.md
DESTINATION ${CMAKE_INSTALL_DOCDIR})
if(MSVC)
set(CMAKE_VS_GLOBALS "TrackFileAccess=false") # faster builds
endif()
include(max_warnings)
# Add socket libraries

View File

@@ -167,6 +167,7 @@ build_script:
if($env:UWP -eq "ON") {
$env:CMAKE_ARG += " -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0"
}
$env:CMAKE_ARG += " -DCMAKE_VS_GLOBALS=TrackFileAccess=false"
# FIXME: First sshd test sometimes timeouts, subsequent ones almost always fail:
# 'libssh2_session_handshake failed (-43): Failed getting banner'
- echo cmake "-G%GENERATOR%" %CMAKE_ARG% -DENABLE_WERROR=ON -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DCRYPTO_BACKEND=%CRYPTO_BACKEND% -DRUN_SSHD_TESTS=OFF