<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Oh, maybe you misunderstood me. I know, that CMake does no
      preprocessing. This is done by the preprocessor.</p>
    <p>But, what I want, is that the generated solution/VS-project with
      CMake gives me the result like in the part I've pasted below. This
      should be part of the generated files. And my question is, is it
      possible to generate this and if, how?<br>
    </p>
    <p>=====<br>
      <ClCompile Include="abc.cpp"></p>
    <p><PreprocessToFile
      Condition="'$(Configuration)|(Platform)'=='Release|x64'"></p>
    <p>false<br>
    </p>
    <p></PreprocessToFile></p>
    <p><PreprocessKeepComments
      Condition="'$(Configuration)|$(Platform)'=='Release|x64'"><br>
    </p>
    <p>false<br>
    </p>
    <p><PreprocessKeepComments><br>
    </p>
    <p></ClCompile></p>
    <p>=====</p>
    <br>
    <div class="moz-cite-prefix">Am 05.05.2018 um 16:31 schrieb J
      Decker:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAA2GJqX0rq5bkSfQb4xpEEtjihYCPsdpbQNv7omZTQfxhqQofg@mail.gmail.com">
      <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"
                moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">https://cmake.org/mailman/<wbr>listinfo/cmake</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>