[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    [CMake] add_subdirectory with EXCLUDE_FROM_ALL and cmake --build (Visual Studio)
From:       "Mueller-Roemer, Johannes Sebastian" <Johannes.Sebastian.Mueller-Roemer () igd ! frau
Date:       2016-07-29 6:16:49
Message-ID: 8D981219EEA621479C112DA9BDC39A8E636F7596 () EXMBS1 ! ad ! igd ! fraunhofer ! de
[Download RAW message or body]

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 separa=
te solution (and therefore do not appear in the main solution at all) in th=
e corresponding binary dir subfolder. This causes a cmake -build ${CMAKE_BI=
NARY_DIR} to fail, unlike other generators. Is this intended behavior? It s=
eems odd not to have the targets in the same solution at all

Johannes Mueller-Roemer

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


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">I just noticed the following \
issue:<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span lang="EN-US">If \
I do an add_subdirectory([&#8230;] 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 &#8211;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<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US">Johannes Mueller-Roemer<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
style="mso-fareast-language:DE">Fraunhofer-Institut für Graphische Datenverarbeitung \
IGD<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="mso-fareast-language:DE">Fraunhoferstr. 5&nbsp; |&nbsp; 64283 Darmstadt&nbsp; \
|&nbsp; Germany<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="mso-fareast-language:DE">Tel &#43;49 6151 155-606&nbsp; |&nbsp; Fax &#43;49 \
6151 155-139<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="mso-fareast-language:DE"><a \
href="mailto:johannes.mueller-roemer@igd.fraunhofer.de"><span \
style="color:blue">johannes.mueller-roemer@igd.fraunhofer.de</span></a> | <a \
href="http://www.igd.fraunhofer.de"><span \
style="color:blue">www.igd.fraunhofer.de</span></a><o:p></o:p></span></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> </div>
</body>
</html>



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
--===============0842209506==--



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic