On 2014-11-02 18:52+0100 Andreas Naumann wrote:
Hi Alan,
with cmake 2.8.12.1 I can confirm this behavior at least for Makefile
generator on Linux, see the attached small CMakeLists.txt. But what would be
a better behavior? Changing the target name would change the output at end.
So the user would have to figure out, what changed why. At this point, I
would prefer the current behavior, because cmake does at least with the
Makefile generator, the same thing as the user writes.
So the warning is appropriate.
Absolutely! For now, a warning is essential because bad things could
happen for target names with slashes in them that propagate to the
filename level on Unix platforms. But all I am saying is in the
long-term it would be a good idea to make it impossible for those bad
things to happen so the current constraints on what is allowed for
target names could be relaxed.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake