Skip to content

Commit 3d90f4f

Browse files
author
Aliaksandr Adziareika
committed
<TBBAS-2530> Set export example device module interface explicitly
1 parent 911963c commit 3d90f4f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Configure simple device module with CMake Windows
6161
if: runner.os == 'Windows'
62-
# run: cmake -B build/output -S . -G Ninja -DOPENDAQ_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ steps.windows-dependencies-install.outputs.vcpkg-toolchain-file }}
62+
# run: cmake -B build/output -S . -G "Visual Studio 17 2022" -DOPENDAQ_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ steps.windows-dependencies-install.outputs.vcpkg-toolchain-file }}
6363
run: cmake -B build/output -S . -G Ninja -DOPENDAQ_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release
6464

6565
- name: Configure simple device module with CMake

example_module/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ add_library(${LIB_NAME} SHARED ${SRC_Include}
3232
)
3333

3434
add_library(${SDK_TARGET_NAMESPACE}::${LIB_NAME} ALIAS ${LIB_NAME})
35+
if(WIN32 AND (MSVC OR MINGW))
36+
target_compile_definitions(${LIB_NAME} PRIVATE OPENDAQ_MODULE_EXPORTS)
37+
endif()
3538

3639
if (MSVC)
3740
target_compile_options(${LIB_NAME} PRIVATE /bigobj)

0 commit comments

Comments
 (0)