Re: [CMake] Creating a relocatable ProjectConfig.cmake when build uses absolute paths

2018-01-14 Thread Craig Scott
(Includes earlier reply from me not sent to the list) On Fri, Jan 12, 2018 at 9:10 AM, Lucas Soltic wrote: > > On Thu, Jan 11, 2018 at 10:09 AM, Lucas Soltic > wrote: > >> Hello, >> >> I'm trying to create a relocatable package configuration file

[CMake] Creating a relocatable ProjectConfig.cmake when build uses absolute paths

2018-01-10 Thread Lucas Soltic
Hello, I'm trying to create a relocatable package configuration file but I'm having a hard time with absolute paths that are used during the build. Note that I use CMake 3.10.0. First of all for the include path I'm using this: target_include_directories(MyStaticTarget PUBLIC