<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 7:02 AM, Kristian <span dir="ltr"><<a href="mailto:kristianonline28@gmail.com" target="_blank">kristianonline28@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a Visual Studio 2015 Solution with some C++ projects in it. I<br>
try to generate the same solution and the projects with CMake. Now,<br>
there is a part, where I do not know how to solve this.<br>
<br>
In a vcxproj file, there is something like this written:<br>
<br>
=====<br>
<ClCompile Include="abc.cpp"><br>
<br>
<PreprocessToFile Condition="'$(Configuration)|$<wbr>(Platform)'=='Release|x64'"><br>
false<br>
</PreprocessToFile><br>
<br>
<PreprocessKeepComments<br>
Condition="'$(Configuration)|$<wbr>(Platform)'=='Release|x64'"><br>
false<br>
<PreprocessKeepComments><br>
</ClCompile><br>
=====<br>
<br>
So, now my question: Is it possible, to get the same result with CMake here?<br>
-- <br></blockquote><div><br></div><div>Yes; and you don't need to do anything; cmake doesn't preprocess to a file by default (or by any option I know of).</div><div>So what you have indicated... 'false' 'false' is what cmake generates.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/<wbr>listinfo/cmake</a><br>
</blockquote></div><br></div></div>