cern-fts / davix

High-performance file management over WebDAV / HTTP
GNU Lesser General Public License v2.1
84 stars 36 forks source link

Fix cmake warning #95

Closed ellert closed 2 years ago

ellert commented 2 years ago

See: cmake --help-policy CMP0022

mpatrascoiu commented 2 years ago

Thanks!

According to the cmake --help-policy manual:

This policy was introduced in CMake version 2.8.12.  CMake version
2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use
the cmake_policy command to set it to OLD or NEW explicitly.

This tells me OLD is used by default, which ignores the new INTERFACE_LINK_LIBRARIES syntax. I wanted to make sure this change will be intentional and not have consequences, which looks like it won't until the moment we use cmake_policy(NEW).