Skip to content

Commit

Permalink
Fixed vcpkgargs use
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryOsterman committed Oct 24, 2022
1 parent 34ae783 commit 2e067d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions eng/pipelines/templates/steps/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ steps:
displayName: cmake --version

- script: |
${{ parameters.Env }} cmake ${{ parameters.GenerateArgs }} ..
${{ parameters.Env }} cmake ${{ parameters.VcpkgArgs }} ${{ parameters.GenerateArgs }} ..
workingDirectory: build
displayName: cmake generate
env:
VCPKG_BINARY_SOURCES: $(VCPKG_BINARY_SOURCES_SECRET)
# Core should build all cmake tagets
- ${{ if and(eq(parameters.Build, true), eq(parameters.ServiceDirectory, 'core')) }}:
- script: cmake --build . ${{ parameters.VcpkgArgs }} ${{ parameters.BuildArgs }}
- script: cmake --build . ${{ parameters.BuildArgs }}
workingDirectory: build
displayName: cmake build All

# Non-core services define the list of targets to build
- ${{ if and(eq(parameters.Build, true) , ne(parameters.ServiceDirectory, 'core')) }}:
- pwsh: cmake --build . ${{ parameters.VcpkgArgs }} ${{ parameters.BuildArgs }} --target (Get-Content ${{ parameters.ServiceDirectory }}-targets-build.txt)
- pwsh: cmake --build . ${{ parameters.BuildArgs }} --target (Get-Content ${{ parameters.ServiceDirectory }}-targets-build.txt)
workingDirectory: build
displayName: cmake build Targets

4 changes: 2 additions & 2 deletions vcpkg-custom-ports/openssl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h")
message(FATAL_ERROR "Can't build openssl if libressl/boringssl is installed. Please remove libressl/boringssl, and try install openssl again if you need it.")
endif()

set(OPENSSL_VERSION 1.1.1n)
set(OPENSSL_VERSION 1.1.1q)
vcpkg_download_distfile(
ARCHIVE
URLS "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" "https://www.openssl.org/source/old/1.1.1/openssl-${OPENSSL_VERSION}.tar.gz"
FILENAME "openssl-${OPENSSL_VERSION}.tar.gz"
SHA512 1937796736613dcf4105a54e42ecb61f95a1cea74677156f9459aea0f2c95159359e766089632bf364ee6b0d28d661eb9957bce8fecc9d2436378d8d79e8d0a4
SHA512 cb9f184ec4974a3423ef59c8ec86b6bf523d5b887da2087ae58c217249da3246896fdd6966ee9c13aea9e6306783365239197e9f742c508a0e35e5744e3e085f
)

vcpkg_find_acquire_program(PERL)
Expand Down

0 comments on commit 2e067d6

Please sign in to comment.