From 4bdfa228cb4d00491bf1e6c303d411029757e243 Mon Sep 17 00:00:00 2001 From: bruno <97033386+bruno-at-orange@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:18:02 +0200 Subject: [PATCH] Add property in KNI target to build lib file From cmake version 3.4 WINDOWS_EXPORT_ALL_SYMBOLS is needed to produce lib file alongside the dll --- src/Learning/KhiopsNativeInterface/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Learning/KhiopsNativeInterface/CMakeLists.txt b/src/Learning/KhiopsNativeInterface/CMakeLists.txt index 7f9783e66..1d6abce7f 100644 --- a/src/Learning/KhiopsNativeInterface/CMakeLists.txt +++ b/src/Learning/KhiopsNativeInterface/CMakeLists.txt @@ -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)