From 8b7026bc5e2af7403d7126b4916eb0f2c34ad5ac Mon Sep 17 00:00:00 2001 From: Bernd Waibel Date: Sat, 7 Jan 2023 11:42:05 +0100 Subject: [PATCH] fix some installation paths Use GNUInstallDirs variable throughout the build system. Bug: https://github.com/ampas/CTL/issues/100 Signed-off-by: Bernd Waibel --- OpenEXR_CTL/CtlModules/CMakeLists.txt | 6 +++--- OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenEXR_CTL/CtlModules/CMakeLists.txt b/OpenEXR_CTL/CtlModules/CMakeLists.txt index c63c22e6..14054d11 100644 --- a/OpenEXR_CTL/CtlModules/CMakeLists.txt +++ b/OpenEXR_CTL/CtlModules/CMakeLists.txt @@ -1,7 +1,7 @@ -install( +install( FILES utilities.ctl - DESTINATION - ${INSTALL_LIB_DIR}/CTL + DESTINATION + ${CMAKE_INSTALL_DATADIR}/CTL ) diff --git a/OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt b/OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt index e4a414e3..6750a362 100644 --- a/OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt +++ b/OpenEXR_CTL/exr_ctl_exr/CMakeLists.txt @@ -37,6 +37,6 @@ target_link_libraries (exr_ctl_exr #target_link_libraries( exr_ctl_exr ${IlmBase_LIBRARIES} ${IlmBase_LDFLAGS_OTHER} ) #target_link_libraries( exr_ctl_exr ${OpenEXR_LIBRARIES} ${OpenEXR_LDFLAGS_OTHER} ) -install( TARGETS exr_ctl_exr DESTINATION ${INSTALL_BIN_DIR} ) +install( TARGETS exr_ctl_exr DESTINATION ${CMAKE_INSTALL_BINDIR} ) -install( FILES change_saturation.ctl DESTINATION ${INSTALL_LIB_DIR}/CTL ) +install( FILES change_saturation.ctl DESTINATION ${CMAKE_INSTALL_DATADIR}/CTL )