Skip to content

Commit

Permalink
[vcpkg] Convert env vars slash if host is Win32 (microsoft#16927)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin authored Apr 7, 2021
1 parent 7c89056 commit 2e35636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get_cmake_vars/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ foreach(VAR IN LISTS VCPKG_VARS_TO_CHECK)
endforeach()

foreach(_env IN LISTS VCPKG_ENV_VARS_TO_CHECK)
IF(WIN32)
if(CMAKE_HOST_WIN32)
string(REPLACE "\\" "/" ENV_${_env} "$ENV{${_env}}")
string(APPEND OUTPUT_STRING "set(${VCPKG_VAR_PREFIX}_ENV_${_env} \"${ENV_${_env}}\")\n")
else()
Expand Down

0 comments on commit 2e35636

Please sign in to comment.