Page 1 of 1

Patch to fix CMake CMP0026 policy warnings

PostPosted: Fri Jun 13, 2014 7:13 pm
by vitaut
Hello,

Configuring LAPACK with CMake 3.0 produces more than a thousand lines of warnings of the form:

CMake Warning (dev) at TESTING/CMakeLists.txt:13 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "xlintsts". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.


The attached patch fixes the warnings by replacing the deprecated LOCATION target property with the generator expression $<TARGET_FILE>.

Best regards,
Victor

Re: Patch to fix CMake CMP0026 policy warnings

PostPosted: Sat Jun 14, 2014 1:06 pm
by admin
Thank you very much for your contribution.
Your patch has been applied (rev 1482) and will be included in the next LAPACK release.
Users' contributions and feedbacks are what makes LAPACK so robust. much appreciated!
Julie

Re: Patch to fix CMake CMP0026 policy warnings

PostPosted: Mon Jun 16, 2014 8:17 pm
by vitaut
Awesome, thanks!