From db305285732e3ed5f7a8c62420787383e05ff337 Mon Sep 17 00:00:00 2001 From: Mahder Gebremedhin Date: Tue, 5 Sep 2023 14:14:29 +0200 Subject: [PATCH] Fix installation path specifier. - Make the install path relative. CMAKE_INSTALL_PREFIX is added to each install path implicitly. No need to specify it. In fact it makes the packages generated from this setup not relocatable. --- src/OMSimulatorServer/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OMSimulatorServer/CMakeLists.txt b/src/OMSimulatorServer/CMakeLists.txt index 94b539e50..2eb12b083 100644 --- a/src/OMSimulatorServer/CMakeLists.txt +++ b/src/OMSimulatorServer/CMakeLists.txt @@ -2,5 +2,6 @@ project(OMSimulatorServer) # install only if build as part of the OpenModelica super project if(OPENMODELICA_SUPERPROJECT) - install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/OMSimulatorServer.py" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/OMSimulator/scripts) + install(FILES OMSimulatorServer.py + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/OMSimulator/scripts) endif()