Patch to fix CMake CMP0026 policy warnings

Post here if you want to report a bug to the LAPACK team

Patch to fix CMake CMP0026 policy warnings

Postby vitaut » Fri Jun 13, 2014 7:13 pm

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
Attachments
0001-Fix-CMake-CMP0026-policy-warnings.patch.txt
(2.19 KiB) Downloaded 146 times
vitaut
 
Posts: 2
Joined: Fri Jun 13, 2014 7:02 pm

Re: Patch to fix CMake CMP0026 policy warnings

Postby admin » Sat Jun 14, 2014 1:06 pm

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
admin
Site Admin
 
Posts: 522
Joined: Wed Dec 08, 2004 7:07 pm

Re: Patch to fix CMake CMP0026 policy warnings

Postby vitaut » Mon Jun 16, 2014 8:17 pm

Awesome, thanks!
vitaut
 
Posts: 2
Joined: Fri Jun 13, 2014 7:02 pm


Return to Bug report

Who is online

Users browsing this forum: No registered users and 1 guest

cron