[cmake-developers] [CMake 0014279]: Project() command is incorrectly seen in cmMakefile.cxx if command() is in macro
Mantis Bug Tracker
mantis at public.kitware.com
Mon Jul 8 10:56:21 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14279
======================================================================
Reported By: dbcfd
Assigned To:
======================================================================
Project: CMake
Issue ID: 14279
Category: CMake
Reproducibility: always
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2013-07-08 08:56 MDT
Last Modified: 2013-07-08 08:56 MDT
======================================================================
Summary: Project() command is incorrectly seen in
cmMakefile.cxx if command() is in macro
Description:
If a top level CMakeLists.txt does not have a project() command, but it has a
macro which includes a project() command that is never called, cmMakefile.cxx
will see that as a project() command.
Behavior for the Visual Studio generator, without macro:
* Solution project.sln is created
Behavior for the Visual Studio generator, with macro, no project command:
* No solution file created
* No errors/warnings
* Only project file created
Behavior for the Visual Studio generator, with macro, project command in
include()'d file
* Solution file generated with desired name
* Cache variables set appropriately so they can be set prior to project()
command
* No errors/warnings
Steps to Reproduce:
See attached file.
Additional Information:
See 0014269 for more information
(http://public.kitware.com/Bug/view.php?id=14269).
This is a result of line 650 in cmMakefile.cxx, which looks for any project()
command in the top level file, even if that command is within a macro/function
that is not called.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-07-08 08:56 dbcfd New Issue
2013-07-08 08:56 dbcfd File Added: Reproduce.zip
======================================================================
More information about the cmake-developers
mailing list