Skip to content

Commit eb5679c

Browse files
committed
remove forced installation of dependencies for windows
1 parent 31cf757 commit eb5679c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ if(VCPKG_CHAINLOAD_TOOLCHAIN_FILE)
3131
include("${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}")
3232
endif()
3333

34+
option(INSTALL_WIN32_DEPEDENCIES "Whether to install Windows dependencies using vcpkg" OFF)
3435
if (DEFINED CMAKE_TOOLCHAIN_FILE AND WIN32)
3536
find_package(GTest)
36-
if(NOT (GTEST_FOUND OR GTest_FOUND))
37+
if (INSTALL_WIN32_DEPEDENCIES AND NOT (GTEST_FOUND OR GTest_FOUND))
3738
install_windows_deps()
3839
endif()
3940
find_package(GTest REQUIRED)

0 commit comments

Comments
 (0)