CMake config file references files with wrong path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pugixml (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I tried to use this package when building VTK from source, by passing the flag
-Dpugixml_
to the CMake configure step. This failed with
CMake Error at /usr/share/
The imported target "pugixml" references the file
"/
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/
but not all the files it references.
Call Stack (most recent call first):
CMake/
ThirdParty/
Looking at /usr/share/
# Compute the installation prefix relative to this file.
get_filename_
# Use original install prefix when loaded through a
# cross-prefix symbolic link such as /lib -> /usr/lib.
get_filename_
get_filename_
if(_realCurr STREQUAL _realOrig)
set(_
endif()
unset(_realOrig)
unset(_realCurr)
get_filename_
get_filename_
get_filename_
get_filename_
if(_IMPORT_PREFIX STREQUAL "/")
set(_
endif()
seems to arrive at a ${_IMPORT_PREFIX} of "", which means e.g.
set_target_
IMPORTED_
IMPORTED_
)
in /usr/share/
Looks like the calculation of ${_IMPORT_PREFIX} is wrong, not sure if this is because of some wrong assumption that doesn't hold.
Seems to make it impossible to use this package from a CMake-using project (using -Dpugixml_DIR).
Status changed to 'Confirmed' because the bug affects multiple users.