Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not familiar with the way CMake generates Visual Studio solution/project files, but I'm guessing it's generating one (set?) for your entire project. Due to the nature of the way CMake works (I can't find good documentation on this; maybe the "Mastering CMake" book?), if the subdirectory project files are not separate, it will regenerate them any time a CMakeLists.txt file is changed. Then, Visual Studio would be responsible for rebuilding the whole thing or not (I'm guessing that it rebuilds it when it sees that the project file has changed).</p> <p>The <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command%3aadd_subdirectory" rel="nofollow">documentation for add_subdirectory</a> does say</p> <blockquote> <p>The CMakeLists.txt file in the specified source directory will be processed immediately by CMake before processing in the current input file continues beyond this command.</p> </blockquote> <p>That seems to indicate that all the subdirectories are processed as part of the main project.</p> <p>That same documentation mentions the use of the <code>project</code> command in a subdirectory. It's talking about when you use the <code>EXCLUDE_FROM_ALL</code> argument, but it seems possible (worth a try) that it could help in your situation anyway. For example, maybe if CMake generates the demo code as its own project, the main code won't get rebuilt when the demo project file changes.</p> <p>I think that, to get a definitive answer, you may need to post on the <a href="http://www.cmake.org/cmake/help/mailing.html" rel="nofollow">CMake mailing list</a> (and if you get a good answer, post it here).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload