[CMake] add_subdirectory with EXCLUDE_FROM_ALL and cmake --build (Visual Studio)

Mueller-Roemer, Johannes Sebastian Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de
Fri Jul 29 02:16:49 EDT 2016


I just noticed the following issue:

If I do an add_subdirectory([...] EXCLUDE_FROM_ALL) and generate a VS (2015) solution, projects added in that subdirectory generate an entirely separate solution (and therefore do not appear in the main solution at all) in the corresponding binary dir subfolder. This causes a cmake -build ${CMAKE_BINARY_DIR} to fail, unlike other generators. Is this intended behavior? It seems odd not to have the targets in the same solution at all

Johannes Mueller-Roemer

Fraunhofer-Institut für Graphische Datenverarbeitung IGD
Fraunhoferstr. 5  |  64283 Darmstadt  |  Germany
Tel +49 6151 155-606  |  Fax +49 6151 155-139
johannes.mueller-roemer at igd.fraunhofer.de<mailto:johannes.mueller-roemer at igd.fraunhofer.de> | www.igd.fraunhofer.de<http://www.igd.fraunhofer.de>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160729/8bb38eb0/attachment.html>


More information about the CMake mailing list