title: Where to set CMAKE_CONFIGURATION_TYPES in a project with subprojects
body: <p>Lets say I have a project with two independent subprojects. If I understood cmake correctly, the idea would be to have one root <code>CMakeLists.txt</code> defining a <code>project(...)</code> and then using <code>add_subdirectory(...)</code> to include the subprojects. Each subproject would have its own <code>CMakeLists.txt</code> defining its own project. This way projects can be build either together (using the root cmake file) or individually (using the subprojects cmake file).</p>
  
  <p>I now would like to change the <code>CMAKE_CONFIGURATION_TYPES</code>. Should I do this in the root <code>CMakeLists.txt</code> or in each subproject, or both?</p>
  
  <p>Changing it in the root would mean that building a subproject individually would offer the wrong configuration types; the other options would duplicate the cmake code. I think I'm missing something here.</p>