MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014279 | CMake | CMake | public | 2013-07-08 10:56 | 2016-06-10 14:31 | |||||
Reporter | dbcfd | |||||||||
Assigned To | Kitware Robot | |||||||||
Priority | low | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | moved | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake 2.8.11.2 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0014279: cmake should diagnose when no project() is invoked in the top directory | |||||||||
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. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | Reproduce.zip (861) 2013-07-08 10:56 https://public.kitware.com/Bug/file/4814/Reproduce.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2013-07-08 10:56 | dbcfd | New Issue | ||||||||
2013-07-08 10:56 | dbcfd | File Added: Reproduce.zip | ||||||||
2013-07-08 11:25 | Brad King | Note Added: 0033507 | ||||||||
2013-07-08 11:28 | Brad King | Note Added: 0033508 | ||||||||
2013-07-08 11:29 | Brad King | Status | new => backlog | |||||||
2013-07-08 11:29 | Brad King | Summary | Project() command is incorrectly seen in cmMakefile.cxx if command() is in macro => cmake should diagnose when no project() is invoked in the top directory | |||||||
2013-07-08 11:32 | Brad King | Relationship added | related to 0014278 | |||||||
2013-07-08 17:46 | dbcfd | Note Added: 0033513 | ||||||||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042315 | ||||||||
2016-06-10 14:29 | Kitware Robot | Status | backlog => resolved | |||||||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|