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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers