Reputation: 7809
I'm installing dependencies with Conan 2.0, specified in my conanfile.py
. I don't want the cmake config files set INTERFACE_LINK_DIRECTORIES
on any of the targets.
As a first step I tried to disable it for one package but it didn't work. Here's what I tried:
def generate(self):
deps = CMakeDeps(self)
deps.set_property("zlib", "cmake_set_interface_link_directories", False)
deps.generate()
The INTERFACE_LINK_DIRECTORIES
is still set in ZLIB-Target-<config>.cmake
. Should the code above work? I also tried "zlib/1.3.1"
and "False"
. How to do it properly for one package and for all packages?
Upvotes: 0
Views: 30