Centos – Why CMake puts the absolute path of my IMPORTED library inside my binaries?
For using find_package( for another library that I am using (it is not supporting CMake), I have developed something like this (I am using gcc10 on CentOS 7 and CMake 3.20 with Ninja 1.10.2): add_library(MyLib UNKNOWN IMPORTED) target_include_directories(MyLib INTERFACE "$ENV{MY_LIB}/include")…