File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ function(set_variable_from_rel_or_absolute_path var root rel_or_abs_path)
11
11
endfunction ()
12
12
13
13
# Tell the user project where to find our headers and libraries
14
- get_filename_component (_DIR "${CMAKE_CURRENT_LIST_FILE} " ABSOLUTE )
15
- get_filename_component (_DIR "${_DIR} " DIRECTORY )
14
+ get_filename_component (_DIR "${CMAKE_CURRENT_LIST_DIR} /../../.." ABSOLUTE )
16
15
get_filename_component (_ROOT "${_DIR} /@PROJECT_ROOT_DIR@" ABSOLUTE )
17
16
# Use _ROOT as prefix here for the possibility of relocation after installation.
18
17
set_variable_from_rel_or_absolute_path("TIFF_INCLUDE_DIR" "${_ROOT} " "@CMAKE_INSTALL_INCLUDEDIR@" )
@@ -21,7 +20,7 @@ set(TIFF_INCLUDE_DIRS ${TIFF_INCLUDE_DIR})
21
20
set (TIFF_LIBRARIES TIFF::tiff)
22
21
23
22
if (NOT TARGET TIFF::tiff)
24
- include ("${_DIR } /TiffTargets.cmake" )
23
+ include ("${CMAKE_CURRENT_LIST_DIR } /TiffTargets.cmake" )
25
24
endif ()
26
25
27
26
unset (_ROOT)
You can’t perform that action at this time.
0 commit comments