Skip to content

Commit

Permalink
[vcpkg_build_msbuild] Hotfix regression in microsoft#16173
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Feb 11, 2021
1 parent d264b0e commit a1c17d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/cmake/vcpkg_build_msbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function(vcpkg_build_msbuild)
/p:UseIntelMKL=No
/p:WindowsTargetPlatformVersion=${_csc_TARGET_PLATFORM_VERSION}
/p:VcpkgManifestInstall=false
/p:VcpkgManifestEnabled=false
/m
)

Expand All @@ -113,8 +114,10 @@ function(vcpkg_build_msbuild)
APPEND _csc_OPTIONS
/p:ForceImportBeforeCppTargets=${SCRIPTS}/buildsystems/msbuild/vcpkg.targets
"/p:VcpkgTriplet=${TARGET_TRIPLET}"
"/p:VcpkgCurrentInstalledDir=${CURRENT_INSTALLED_DIR}"
"/p:VcpkgInstalledDir=${_VCPKG_INSTALLED_DIR}"
)
else()
list(APPEND _csc_OPTIONS "/p:VcpkgEnabled=false")
endif()

if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
Expand Down

0 comments on commit a1c17d2

Please sign in to comment.