Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use real ALIAS target for flann to preserve properties on original ta…
…rget. With the current method all properties set on the flann::flann_cpp and flann::flann_cpp target are lost, as they are not copied to the new FLANN::FLANN interface target. However, there are cases, where we would like preserve these, e.g. to keep the INTERFACE_INCLUDE_DIRECTORIES property that includes the path to the LZ4 headers. Therefore this patch first checks for the appropriate SHARED or STATIC version and then aliases FLANN::FLANN to the respective library.
- Loading branch information