Skip to content

Commit 98a4c5c

Browse files
authored
Merge pull request #1306 from matthew-sharp/master
Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes #1174)
2 parents 5d0a8b0 + 6558637 commit 98a4c5c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmake/OpenJPEGConfig.cmake.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ if(EXISTS ${SELF_DIR}/OpenJPEGTargets.cmake)
2727
# This is an install tree
2828
include(${SELF_DIR}/OpenJPEGTargets.cmake)
2929

30-
# We find a relative path from the PKG directory to header files.
31-
set(PKG_DIR "@CMAKE_INSTALL_PREFIX@/@OPENJPEG_INSTALL_PACKAGE_DIR@")
3230
set(INC_DIR "@CMAKE_INSTALL_PREFIX@/@OPENJPEG_INSTALL_INCLUDE_DIR@")
33-
file(RELATIVE_PATH PKG_TO_INC_RPATH "${PKG_DIR}" "${INC_DIR}")
34-
35-
get_filename_component(OPENJPEG_INCLUDE_DIRS "${SELF_DIR}/${PKG_TO_INC_RPATH}" ABSOLUTE)
31+
get_filename_component(OPENJPEG_INCLUDE_DIRS "${INC_DIR}" ABSOLUTE)
3632

3733
else()
3834
if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)

0 commit comments

Comments
 (0)