You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1250 Introduced an alias to yaml-cpp if not already present. This works great on CMake versions 3.18 or greater.
With older versions CMake fails with the message:
CMake Error at app/meas_cutter/CMakeLists.txt:27 (add_library):
add_library cannot create ALIAS target "yaml-cpp::yaml-cpp" because target
"yaml-cpp" is imported but not globally visible.
The ability to create a scoped ALIAS for non-global imported libraries was introduced in version 3.18. add_library(ALIAS) Documentation
This affects Ubuntu 20 and any other environment running CMake less than 3.18
Problem Description
#1250 Introduced an alias to yaml-cpp if not already present. This works great on CMake versions 3.18 or greater.
With older versions CMake fails with the message:
The ability to create a scoped ALIAS for non-global imported libraries was introduced in version 3.18.
add_library(ALIAS) Documentation
This affects Ubuntu 20 and any other environment running CMake less than 3.18
This issue isn't caught by CI because it uses the latest CMake version.
To resolve this I could find two options:
I was able to test option 2; it built and
ldd
showed it linking tolibyaml-cpp.so
correctly. 😄I can make a PR with your preferred choice if you'd like.
How to reproduce
How did you get eCAL?
Custom Build / Built from source
Environment
eCAL System Information
No response
The text was updated successfully, but these errors were encountered: