Skip to content

Commit

Permalink
Remove and move openssl to correct folder on Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
HoundThe committed Jan 25, 2024
1 parent adbe221 commit 2aac779
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ jobs:

- name: Install OpenSSL on Windows
if: matrix.os == 'windows-latest'
run: choco install openssl
run: |
rd -r "C:/Program Files/OpenSSL"
choco install openssl
Copy-Item -Path "C:/Program Files/OpenSSL/lib/VC/x64/MD/*" -Destination "C:/Program Files/OpenSSL/lib/VC" -Recurse
- name: Configure CMake
if: matrix.os != 'macos-latest'
- name: Configure Ubuntu CMake
if: matrix.os == 'ubuntu-latest'
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON

- name: Configure Windows CMake
if: matrix.os == 'windows-latest'
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON

- name: Configure MacOS CMake
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ project(authenticode_parser VERSION 1.0.0 LANGUAGES C)

find_package(OpenSSL 1.1.1 REQUIRED)

message(STATUS "SSL library is ${OPENSSL_SSL_LIBRARY}")
message(STATUS "Crypto library is ${OPENSSL_SSL_LIBRARY}")
message(STATUS "All openssl libraries are ${OPENSSL_SSL_LIBRARY}")
message(STATUS "OpenSSL version is ${OPENSSL_SSL_LIBRARY}")

include(GNUInstallDirs)

add_library(authenticode STATIC
Expand Down

0 comments on commit 2aac779

Please sign in to comment.