[CMake] Setting policy to old for CMP0043 does not suppress warning messages

Jake thatcadguy at gmail.com
Fri Jun 13 12:32:45 EDT 2014


Hello,

I upgraded to 3.0 recently and tried to generate build files for a project (
https://github.com/tpaviot/oce/). I noticed the new warning about CMP0043
and have been trying to fix, but setting the policy to OLD, even at the
beginning of CMakeLists.txt doesn't seem to do anything. Is this a bug or
what? "cmake_policy(SET CMP0043 OLD)" is what I put at the beginning.
Strangely enough, setting the policy in some of the other child
CMakeLists.txt files seems to reduce errors, but placing this in the main
one (which accounts for 29 errors) does nothing. There are 5 occurrences of
COMPILE_DEFINITIONS_something in the main file, so there should be at least
5 less errors when this is set in the main file.

-Jake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140613/c38e1486/attachment.html>


More information about the CMake mailing list