<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=us-ascii">
<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;}
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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Hi Dmitry,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I just tried to upgrade to 3.0r4 and it still defaults the Visual Project setting of “Language -> C++ Language Standard” to “Default”. I need to set it to C++11 somehow, otherwise I get many errors that the C++11 code we are using in
 our engine cannot compile. This will either need to be fixed in CMake through a new variable or in the NVidia NSight Tegra package?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Furthermore, upgrading to 3.0r4 has added a popup when opening the solution in Visual Studio, stating that the project files generated needs to be upgraded. Its upgrading the setting “Preserve native API level” to some value. My guess
 it that the CMake generator doesn’t set the proper default value for this version of NSight.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Dmitry Polyanitsa [mailto:dpolyanitsa@nvidia.com] <br>
Sent: Wednesday, December 3, 2014 11:14 AM<br>
To: Robert Goulet; Brad King<br>
Cc: cmake-developers@cmake.org<br>
Subject: RE: [cmake-developers] CMake 3.1 Android - generator expressions and output names</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">We usually advise to upgrade to the latest version. The transition should be smooth, but you may want to install TADP 3.0r4 on one of the machines first to check all's good before updating it everywhere. In case of any issues or questions
 you can contact me directly via email.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-Dmitry<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">From: Robert Goulet [<a href="mailto:Robert.Goulet@autodesk.com"><span style="color:windowtext;text-decoration:none">mailto:Robert.Goulet@autodesk.com</span></a>]<o:p></o:p></p>
<p class="MsoPlainText">Sent: Wednesday, December 3, 2014 7:03 PM<o:p></o:p></p>
<p class="MsoPlainText">To: Dmitry Polyanitsa; Brad King<o:p></o:p></p>
<p class="MsoPlainText">Cc: <a href="mailto:cmake-developers@cmake.org"><span style="color:windowtext;text-decoration:none">cmake-developers@cmake.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">Subject: RE: [cmake-developers] CMake 3.1 Android - generator expressions and output names<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">We are currently using 3.0-r3, and I am guessing this version doesn't use C++11 by default. You are saying that the latest release should fix this, because it defaults to C++11? I am not sure what are the implications of upgrading our
 engine with this new version. Should we expect the transition to go smoothly? We have to decide on a final version for the release, what's your thoughts on this? Thanks!<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">From: Dmitry Polyanitsa [<a href="mailto:dpolyanitsa@nvidia.com"><span style="color:windowtext;text-decoration:none">mailto:dpolyanitsa@nvidia.com</span></a>]<o:p></o:p></p>
<p class="MsoPlainText">Sent: Wednesday, December 3, 2014 10:46 AM<o:p></o:p></p>
<p class="MsoPlainText">To: Robert Goulet; Brad King<o:p></o:p></p>
<p class="MsoPlainText">Cc: <a href="mailto:cmake-developers@cmake.org"><span style="color:windowtext;text-decoration:none">cmake-developers@cmake.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">Subject: RE: [cmake-developers] CMake 3.1 Android - generator expressions and output names<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi Robert,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I'm Dmitry from the Nsight Tegra team. Currently, we do not allow changing the APK name, so copying/moving the outputs is the best you can do. As for the language standard override, latest Nsight Tegra uses C++11 by default, why would
 you want to set it explicitly?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-Dmitry<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">From: Robert Goulet [<a href="mailto:Robert.Goulet@autodesk.com"><span style="color:windowtext;text-decoration:none">mailto:Robert.Goulet@autodesk.com</span></a>]<o:p></o:p></p>
<p class="MsoPlainText">Sent: Wednesday, December 3, 2014 12:28 AM<o:p></o:p></p>
<p class="MsoPlainText">To: Brad King<o:p></o:p></p>
<p class="MsoPlainText">Cc: <a href="mailto:cmake-developers@cmake.org"><span style="color:windowtext;text-decoration:none">cmake-developers@cmake.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">Subject: RE: [cmake-developers] CMake 3.1 Android - generator expressions and output names<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I can't find any options to set the .apk name from the IDE, but I find it interesting that it uses the project's name instead of the output file name set in the IDE. Hence why I wonder if its CMake result or if its NVidia's Tegra toolkit?
 But I have a work-around for that, using add_custom_command to do a copy using ${CMAKE_COMMAND} -E copy.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">So my only issue left is the fact that I will have to use set_source_properties to pass the -std=c++11 flag instead of being able to set the "C++ Language Standard" option. That is a bit annoying, is there a better work-around?<o:p></o:p></p>
<p class="MsoPlainText">Thanks!<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">From: Brad King [<a href="mailto:brad.king@kitware.com"><span style="color:windowtext;text-decoration:none">mailto:brad.king@kitware.com</span></a>]<o:p></o:p></p>
<p class="MsoPlainText">Sent: Tuesday, December 2, 2014 3:45 PM<o:p></o:p></p>
<p class="MsoPlainText">To: Robert Goulet<o:p></o:p></p>
<p class="MsoPlainText">Cc: <a href="mailto:cmake-developers@cmake.org"><span style="color:windowtext;text-decoration:none">cmake-developers@cmake.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">Subject: Re: [cmake-developers] CMake 3.1 Android - generator expressions and output names<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi Robert,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks for trying out the Nsight Tegra generator support.<o:p></o:p></p>
<p class="MsoPlainText">It is brand new so we are just at the beginning of the maturation process.  We would appreciate any help you can provide.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On 12/02/2014 02:24 PM, Robert Goulet wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Perhaps it would be nice to have a generator expression that refers to
<o:p></o:p></p>
<p class="MsoPlainText">> the .apk file produced when compiling for Android?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">This may be possible, but first we should work out the output name and location settings as discussed next.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> Also, it would make sense that the .apk output name respect the names
<o:p></o:p></p>
<p class="MsoPlainText">> that we set using the target properties OUTPUT_NAME_<CONFIG>. Right
<o:p></o:p></p>
<p class="MsoPlainText">> now it uses the project's name for the .apk, while the .so does indeed
<o:p></o:p></p>
<p class="MsoPlainText">> respect the output name set.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Is it possible to configure the .apk name through the IDE?<o:p></o:p></p>
<p class="MsoPlainText">If so, CMake could be taught to add the corresponding setting to the .vcxproj file.  If not, then Nsight Tegra itself would have to be modified by NVIDIA to support such a setting.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Some output directory settings may be needed too.  We have RUNTIME_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_DIRECTORY, and ARCHIVE_OUTPUT_DIRECTORY already.  I'm not sure if one of these should apply to the .apk, or if another setting would
 be needed.  Also the availability of Nsight Tegra settings for this needs to be investigated.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> C++ Language Standard to other values than Default?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I don't think there is currently.  The commit adding the original support was:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">VS: Teach vcxproj generation about the Tegra-Android platform<o:p></o:p></p>
<p class="MsoPlainText"><a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef0fd4f0"><span style="color:windowtext;text-decoration:none">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ef0fd4f0</span></a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">The commit message documents many of the limitations.  Only the last bullet (ANDROID_GUI prop) and part of the second bullet (ANDROID_API prop) have been addressed so far.  The lack of a flag table or other controls for the rest of the
 project settings is currently the main limitation.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-Brad<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----------------------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoPlainText">This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact
 the sender by reply email and destroy all copies of the original message.<o:p></o:p></p>
<p class="MsoPlainText">-----------------------------------------------------------------------------------<o:p></o:p></p>
</div>
</body>
</html>