Added versioning for shared libraries.

libeigen/eigen!2080

Co-authored-by: Ulysses Apokin <ulysses@altlinux.org>
This commit is contained in:
Ulysses Apokin
2025-11-27 22:18:42 +00:00
committed by Antonio Sánchez
parent db90c4939c
commit a73501cc76
3 changed files with 15 additions and 11 deletions

View File

@@ -110,7 +110,9 @@ if (EIGEN_BUILD_SHARED_LIBS)
# Build LAPACK but link BLAS.
target_compile_definitions(eigen_lapack PUBLIC "EIGEN_BLAS_LINK_DLL" "EIGEN_LAPACK_BUILD_DLL")
target_link_libraries(eigen_lapack eigen_blas)
set_target_properties(eigen_lapack PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(eigen_lapack PROPERTIES CXX_VISIBILITY_PRESET hidden
VERSION ${EIGEN_VERSION_NUMBER}
SOVERSION ${EIGEN_MAJOR_VERSION})
list(APPEND EIGEN_LAPACK_TARGETS eigen_lapack)
endif()