Hi, I am the developer of project options that uses install_basic_package_files from ycm internally for its package_project functionality.
I have noticed that ycm fails to install IMPORTED targets. I have written a patch that detects such imported targets and installs them as a FILE instead of a TARGET.
However, this still fails when calling the export function. This is because when the install(TARGETS ... EXPORT ...) is not called, no export exists.
I am wondering if we can handle this corner case.
See this for more information
CMake Error at build/_deps/_ycm-src/modules/InstallBasicPackageFiles.cmake:660 (export):
export Export set "test" not found.
Call Stack (most recent call first):
build/_deps/_project_options-src/src/PackageProject.cmake:217 (install_basic_package_files)
CMakeLists.txt:36 (package_project)
Hi, I am the developer of project options that uses
install_basic_package_filesfrom ycm internally for itspackage_projectfunctionality.I have noticed that ycm fails to install
IMPORTEDtargets. I have written a patch that detects such imported targets and installs them as aFILEinstead of aTARGET.However, this still fails when calling the
exportfunction. This is because when theinstall(TARGETS ... EXPORT ...)is not called, no export exists.I am wondering if we can handle this corner case.
See this for more information