Skip to content

Commit 62c63a9

Browse files
committed
Fix missing paranthesis in conditional check
-Wrong stash, oops
1 parent cfc5b9b commit 62c63a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMake/helpers.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function(att_bootstrap_vcpkg)
3434

3535
## If Vcpkg is already installed and set in Windows Environment, stick with it and don't enforce in-house vcpkg.
3636
## Removes the possibility of vcpkg git errors, it is faster and compiles successfully. (VS 2022 17.7.5)
37-
if(NOT "${vcpkg_default_root}" STREQUAL "$ENV{VCPKG_ROOT}" AND WIN32)
37+
if(NOT (WIN32 AND "${vcpkg_default_root}" STREQUAL "$ENV{VCPKG_ROOT}"))
3838
if (NOT EXISTS "${vcpkg_bootstrap_cmd}")
3939
find_program(GIT_CMD git REQUIRED)
4040
execute_process(COMMAND "${GIT_CMD}" clone --filter=tree:0 "https://github.com/microsoft/vcpkg.git" "${VCPKG_ROOT}")
@@ -43,7 +43,7 @@ function(att_bootstrap_vcpkg)
4343
message(FATAL_ERROR "failed to clone vcpkg")
4444
endif()
4545
endif()
46-
endif()
46+
endif()
4747

4848
if (NOT EXISTS "${vcpkg_cmd}")
4949
execute_process(COMMAND "${vcpkg_bootstrap_cmd}" -disableMetrics

0 commit comments

Comments
 (0)