From 89b790d72f4d49aea1f80cd35858770410abc705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Tue, 31 May 2022 12:19:50 +0200 Subject: [PATCH] Install install.py Install the install.py python script such that it can be used by opm-simulators when building against an installed opm-common --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29ea77e87..15958a907 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -441,6 +441,9 @@ if (OPM_ENABLE_PYTHON) # setup-install.sh - and completely bypass cmake in the installation phase. if (OPM_INSTALL_PYTHON) install( CODE "execute_process(COMMAND ${Python3_EXECUTABLE} ${PROJECT_BINARY_DIR}/python/install.py ${PROJECT_BINARY_DIR}/python/opm ${DEST_PREFIX}${CMAKE_INSTALL_PREFIX}/${PYTHON_INSTALL_PREFIX} 1)") + ## Need to install this Python script such that it can be used by opm-simulators when building against an installed + ## opm-common + install( PROGRAMS "python/install.py" DESTINATION "share/opm/python" ) endif() # Observe that if the opmcommon library has been built as a shared library the