Re: [cmake-developers] Target's IMPORTED_LOCATION_* when CMAKE_INSTALL_PREFIX or CPACK_PACKAGING_INSTALL_PREFIX is "/"

2016-09-07 Thread Ben Keller
Thank you, it is working as expected. On Wed, Sep 7, 2016 at 8:26 AM, Brad King wrote: > On 09/06/2016 04:31 PM, Ben Keller wrote: >>> Please post the patch. >> Thank you > > Thanks, applied with minor tweaks: > > install: Fix computed import prefix in export files when

Re: [cmake-developers] Target's IMPORTED_LOCATION_* when CMAKE_INSTALL_PREFIX or CPACK_PACKAGING_INSTALL_PREFIX is "/"

2016-09-07 Thread Brad King
On 09/06/2016 04:31 PM, Ben Keller wrote: >> Please post the patch. > Thank you Thanks, applied with minor tweaks: install: Fix computed import prefix in export files when it is "/" https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=290e4ce8 Please try out that version. -Brad -- Powered

Re: [cmake-developers] Target's IMPORTED_LOCATION_* when CMAKE_INSTALL_PREFIX or CPACK_PACKAGING_INSTALL_PREFIX is "/"

2016-09-06 Thread Ben Keller
Thank you On Tue, Sep 6, 2016 at 3:24 PM, Brad King wrote: > On 09/06/2016 03:00 PM, Ben Keller wrote: >> The workaround we are using for this currently is to compile a >> modified version of cmake that appends the following cmake code below >> the get_filename_component

Re: [cmake-developers] Target's IMPORTED_LOCATION_* when CMAKE_INSTALL_PREFIX or CPACK_PACKAGING_INSTALL_PREFIX is "/"

2016-09-06 Thread Brad King
On 09/06/2016 03:00 PM, Ben Keller wrote: > The workaround we are using for this currently is to compile a > modified version of cmake that appends the following cmake code below > the get_filename_component stanza in Targets.cmake: > > if("${_IMPORT_PREFIX}" STREQUAL "/") > set(_IMPORT_PREFIX

[cmake-developers] Target's IMPORTED_LOCATION_* when CMAKE_INSTALL_PREFIX or CPACK_PACKAGING_INSTALL_PREFIX is "/"

2016-09-06 Thread Ben Keller
CMake version 3.5.0 When exporting from a project (with install(EXPORT ...)), theTargets.cmake file contains logic for computing the _IMPORT_PREFIX. This _IMPORT_PREFIX is then used in the Targets-.cmake file to generate the IMPORTED_LOCATION_. The generation appears to be accomplished by