Skip to content

Commit

Permalink
Add property in KNI target to build lib file
Browse files Browse the repository at this point in the history
From cmake version 3.4 WINDOWS_EXPORT_ALL_SYMBOLS is needed to produce
lib file alongside the dll
  • Loading branch information
bruno-at-orange committed Oct 18, 2024
1 parent 1858fd2 commit 201819a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Learning/KhiopsNativeInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set_target_properties(
KhiopsNativeInterface
PROPERTIES PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/KhiopsNativeInterface.h
SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION ${KHIOPS_VERSION})
VERSION ${KHIOPS_VERSION}
WINDOWS_EXPORT_ALL_SYMBOLS true)

set_khiops_options(KhiopsNativeInterface)

0 comments on commit 201819a

Please sign in to comment.