From 76944e1aadfc3b9118cc7dacc505ecf072e08da7 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Tue, 7 Nov 2023 10:31:25 +0100 Subject: [PATCH] [cmake] Install IPhreeqc shared library. --- scripts/cmake/Dependencies.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index 9d740049c71..f736749892a 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -100,6 +100,9 @@ if(_build_chemistry_lib) ${iphreeqc_SOURCE_DIR}/src/phreeqcpp ) list(APPEND DISABLE_WARNINGS_TARGETS IPhreeqc) + if(BUILD_SHARED_LIBS) + install(TARGETS IPhreeqc LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + endif() endif() endif() endif()