Fix linkage errors when linking with a shared library (#2011)

This commit is contained in:
Victor Zverovich
2020-11-12 05:51:00 -08:00
parent 9534b9fe69
commit 6d14f78115
5 changed files with 12 additions and 7 deletions

View File

@@ -12,6 +12,11 @@ jobs:
os: [windows-2016, windows-2019]
platform: [Win32, x64]
build_type: [Debug, Release]
include:
- os: windows-2016
platform: Win32
build_type: Debug
shared: -DBUILD_SHARED_LIBS=ON
exclude:
- os: windows-2016
platform: Win32
@@ -27,7 +32,7 @@ jobs:
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.shared}} \
-A ${{matrix.platform}} $GITHUB_WORKSPACE
- name: Build