<div dir="ltr"><div>Hi CMake community,</div><div><br></div><div>the option <a href="https://cmake.org/cmake/help/v3.14/prop_dir/EXCLUDE_FROM_ALL.html?highlight=exclude_from_all" target="_blank">EXCLUDE_FROM_ALL</a> of <i>add_subdirectory</i> command affects in CMake 3.14.3 the content of the Visual Studio solution file in the added subdirectory.</div><div>The difference is subtle: if the subdirectory A added with EXCLUDE_FROM_ALL from source root contains another subdirectory B, a solution file in A does <b>not contain</b> project from B.</div><div>The behavior changed between versions 3.13.5 and 3.14.3. Tested also on 3.15.0, which produces same output as 3.14.3.Observed on Win 10 using <i>Visual Studio 16 2019</i> and <i>Visual Studio 12 2013 Win64 </i>generators.</div><div>Test with <i>CodeBlocks - Unix Makefiles </i>generator does not show this issue.</div><div><br></div><div><div>Is there a way to retain the old behavior?</div><div>Thanks for an advice.</div></div><div><br></div><div>-------------------------------------------------------------------</div><div>Minimal example (attached):</div><div><br></div><div>$ cat CMakeLists.txt<br>cmake_minimum_required(VERSION 2.8)<br>project(main)<br>add_subdirectory(subdir EXCLUDE_FROM_ALL)<br></div><div><br></div><div>$ cat subdir/CMakeLists.txt<br>project(utilities)<br>add_subdirectory(subsubdir)<br></div><div><br></div><div>$ cat subdir/subsubdir/CMakeLists.txt<br>project(util)<br>add_executable(util util.cpp)<br></div><div><br></div><div>With CMake 3.13.5 the utilities solution file contains project util, whereas with CMake 3.14.3 or 3.15.0 it does not.</div><br clear="all"><div><div dir="ltr" class="m_-1007588641117892991m_6357459914085194276gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:"Times New Roman";color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">--</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Montserrat;color:rgb(128,128,128);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Jakub Imriška</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font color="#808080" face="Montserrat"><span style="font-size:10.6667px;white-space:pre-wrap"><b>Programmer and research developer</b></span></font><span style="background-color:transparent;color:rgb(128,128,128);font-family:Montserrat;font-size:8pt;white-space:pre-wrap">, Photoneo s. r. o. - Focused on 3D</span></p><div><span style="font-size:9.5pt;font-family:Arial;color:rgb(136,136,136);vertical-align:baseline;white-space:pre-wrap"><br><br></span></div></span></div></div></div></div></div></div>

<br>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><div><font size="2" color="#3d85c6">Meet us:</font></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><span style="font-size:10pt;font-family:Roboto;font-weight:700;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.ciif-expo.com/en/" style="color:rgb(17,85,204)" target="_blank">CIIF</a>,</span><span style="font-size:10pt;font-family:Roboto;color:rgb(61,133,198);font-weight:700;vertical-align:baseline;white-space:pre-wrap"> </span><a href="http://www.industrial-automation-show.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Roboto;font-weight:700;vertical-align:baseline;white-space:pre-wrap">IAS</span></a><span style="font-size:10pt;font-family:Roboto;color:rgb(61,133,198);vertical-align:baseline;white-space:pre-wrap">, booth </span><span style="font-size:10pt;font-family:Arial;color:rgb(61,133,198);vertical-align:baseline;white-space:pre-wrap">#C010, Hall 8.1 H, 17-21 September 2019, Shanghai (CN)</span></span></div><div><a href="https://www.motek-messe.de/en" style="background-color:transparent;color:rgb(17,85,204);font-family:Arial,Helvetica,sans-serif;font-size:small" target="_blank"><span style="font-size:10pt;font-family:Arial;background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">MOTEK</span></a><span style="background-color:transparent;font-size:10pt;color:rgb(61,133,198);font-family:Arial;white-space:pre-wrap;vertical-align:baseline">, booth </span><span style="background-color:transparent;font-size:10pt;color:rgb(61,133,198);font-family:Arial;white-space:pre-wrap;vertical-align:baseline"> #7513, Hall 7, </span><span style="background-color:transparent;font-size:10pt;color:rgb(61,133,198);font-family:Arial;white-space:pre-wrap;vertical-align:baseline"> 7-10 October 2019, </span><span style="background-color:transparent;font-size:10pt;color:rgb(61,133,198);font-family:Arial;white-space:pre-wrap;vertical-align:baseline">Stuttgart (DE)</span></div><div><span style="background-color:transparent;font-size:10pt;color:rgb(61,133,198);font-family:Arial;white-space:pre-wrap;vertical-align:baseline"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><a href="https://www.bvv.cz/en/msv/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Arial;font-weight:700;vertical-align:baseline;white-space:pre-wrap">International Engineering Fair Brno 2019</span></a><span style="font-size:10pt;font-family:Arial;color:rgb(61,133,198);vertical-align:baseline;white-space:pre-wrap">, ABB booth #093, Hall P, 7-11 October 2019, Brno (CZ)</span></span><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">  </span></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><font size="2"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="https://www.robotics.org/collaborative-robots-advanced-vision-and-ai-conference" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Arial;font-weight:700;vertical-align:baseline;white-space:pre-wrap">CRAV.ai</span></a><span style="font-size:10pt;font-family:Arial;color:rgb(61,133,198);vertical-align:baseline;white-space:pre-wrap">, tabletop 3, 12-13 November 2019, San Jose (CA)</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="https://sps.mesago.com/events/en.html?ovs_force_web=1&sid=3db8da8e0409fc89fd1c3b914c44be78&stamp=1541992980" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Arial;font-weight:700;vertical-align:baseline;white-space:pre-wrap">SPS IPC Drives</span></a><span style="font-size:10pt;font-family:Arial;color:rgb(61,133,198);vertical-align:baseline;white-space:pre-wrap">, booth #202, Hall 8, 26-28 November 2019, Nuremberg (DE) </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(61,133,198);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:transparent;font-size:10pt;vertical-align:baseline"><span style="font-size:10pt;vertical-align:baseline"><span></span></span></span></span></p><div><br></div></font></span></div></div><div style="font-size:12.8px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><div style="color:rgb(80,0,80)"><font size="1">---</font></div><div style="color:rgb(80,0,80)"><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><span style="font-size:8pt;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"><font face="arial narrow, sans-serif">This e-mail was sent by Photoneo s.r.o. </font><font face="arial narrow, sans-serif">and may contain confidential and/or proprietary information. If you are not the intended addressee, please inform the sender immediately and delete this e-mail.</font></span></p></div></div>