Set OPENJPEG_INSTALL_PACKAGE_DIR to expected standard location

Should be ported to CMakePackageConfigHelpers in the future,
but this will do for now.
This commit is contained in:
Andreas Sturmlechner 2018-11-02 18:08:22 +01:00 committed by Thomas Bracht Laumann Jespersen
parent bec97ed6a5
commit 968471abe5
1 changed files with 1 additions and 4 deletions

View File

@ -122,10 +122,7 @@ if(NOT OPENJPEG_INSTALL_JNI_DIR)
endif()
if(NOT OPENJPEG_INSTALL_PACKAGE_DIR)
# We could install *.cmake files in share/ however those files contains
# hardcoded path to libraries on a multi-arch system (fedora/debian) those
# path will be different (lib/i386-linux-gnu vs lib/x86_64-linux-gnu)
set(OPENJPEG_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_LIBDIR}/${OPENJPEG_INSTALL_SUBDIR}")
set(OPENJPEG_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${OPENJPEG_INSTALL_SUBDIR}")
endif()
if (APPLE)