Remove the alias target

In some cases the definition of the alias target fails, because of
target visibility problems.
This commit is contained in:
Dennis Klein
2018-05-22 14:18:23 +02:00
committed by Mohammad Al-Turany
parent cc4a8b8f7f
commit e54db27242
2 changed files with 1 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ set(CMAKE_PREFIX_PATH /path/to/FairMQ_install_prefix ${CMAKE_PREFIX_PATH})
find_package(FairMQ)
```
`find_package(FairMQ)` will define an imported target `FairMQ::FairMQ` (An alias `FairRoot::FairMQ` is also defined (if you use CMake 3.11+) for backwards compatibility, but it is deprecated).
`find_package(FairMQ)` will define an imported target `FairMQ::FairMQ`.
In order to succesfully compile and link against the `FairMQ::FairMQ` target, you need to discover its public package dependencies, too.