Skip to content

Commit 1cdd1c5

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

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)