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:
parent
bec97ed6a5
commit
968471abe5
|
@ -122,10 +122,7 @@ if(NOT OPENJPEG_INSTALL_JNI_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT OPENJPEG_INSTALL_PACKAGE_DIR)
|
if(NOT OPENJPEG_INSTALL_PACKAGE_DIR)
|
||||||
# We could install *.cmake files in share/ however those files contains
|
set(OPENJPEG_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${OPENJPEG_INSTALL_SUBDIR}")
|
||||||
# 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}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
Loading…
Reference in New Issue