[CMake] Ninja & CMake 2.8.12: source generated with configure_file

Gregoire Aujay gaujay at movea.com
Mon Oct 14 11:10:52 EDT 2013


Hello,

I managed to reproduce the issue, a minimal sample is attached. Use Ninja generator under windows in an out of source build tree to generate the project.
The warning is displayed at build time when invoking ninja.

Issue happens when I generate a resource file in the build tree (out of source).
If I generate the resource inside the source tree, it seems ok.
If I generate a source (not a resource), it seems ok both in source and build tree.


Regards,
Gregoire

From: Nicolas Desprès [mailto:nicolas.despres at gmail.com]
Sent: lundi 14 octobre 2013 16:23
To: Gregoire Aujay
Cc: cmake at cmake.org
Subject: Re: [CMake] Ninja & CMake 2.8.12: source generated with configure_file



On Mon, Oct 14, 2013 at 2:56 PM, Gregoire Aujay <gaujay at movea.com<mailto:gaujay at movea.com>> wrote:
Hello,
Hi,

Since I upgraded to CMake 2.8.12 I have this message for some of my configure_file generated sources:

ninja: warning: multiple rules generate _cmakeRelease\tests\GeneratedSources\versioninfo.rc. builds involving this target will not be correct; continuing anyway


Any idea how I could fix that ?
Could you provide a small CMakeLists.txt producing this error, please?

-Nico


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131014/421c9ce7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sources-ninja-resource-warning.zip
Type: application/x-zip-compressed
Size: 1337 bytes
Desc: sources-ninja-resource-warning.zip
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131014/421c9ce7/attachment-0001.bin>


More information about the CMake mailing list