Skip to content

Commit 3e45994

Browse files
committed
fix(build): use ENABLE_TESTS instead of BUILD_TESTING for Windows CMake
ZLMediaKit uses ENABLE_TESTS (not BUILD_TESTING) to control test targets. Passing -DBUILD_TESTING=OFF had no effect, causing test executables to be added and CMake configure to fail on Windows.
1 parent 0ba8063 commit 3e45994

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build-windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cmake -S . -B build -A $cmakeArch `
5959
-DOPENSSL_USE_STATIC_LIBS=ON `
6060
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot/scripts/buildsystems/vcpkg.cmake" `
6161
-DVCPKG_TARGET_TRIPLET="$vcpkgTriplet" `
62-
-DBUILD_TESTING=OFF `
62+
-DENABLE_TESTS=OFF `
6363
-DENABLE_OPENSSL=ON `
6464
-DENABLE_SRT=ON `
6565
-DENABLE_WEBRTC=ON `

0 commit comments

Comments
 (0)