<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 9:57 AM, KK <span dir="ltr"><<a href="mailto:kristianonline28@gmail.com" target="_blank">kristianonline28@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Oh, maybe you misunderstood me. I know, that CMake does no
      preprocessing. This is done by the preprocessor.</p></div></blockquote><div>Right; that's not what I was saying; it doesn't generte projects with preprocesssing enabled, so the options ARE false already in the generated projects. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    <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></div></blockquote><div>It does.</div><div>Oh I see, it doesn't actually write that out; but the default IS false... so it shouldn't have to.</div><div>I did some testing, and setting a project to preprocess to a file, it(visual studio)   writes <PreprocessToFile>true</PreprocessToFile></div><div>If I reset that back to default/inhert from project; it deletes that entry entirely from the project.</div><div>So; unless you want it ENABLED correct behavior should be to not write it (which, like I said, cmake already does (or rather doesn't do))</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>
    </p>
    <p>=====<br>
      <ClCompile Include="abc.cpp"></p>
    <p><PreprocessToFile
      Condition="'$(Configuration)|(<wbr>Platform)'=='Release|x64'"></p><span class="gmail-">
    <p>false<br>
    </p>
    <p></PreprocessToFile></p>
    <p><PreprocessKeepComments
      Condition="'$(Configuration)|$<wbr>(Platform)'=='Release|x64'"><br>
    </p>
    <p>false<br>
    </p>
    <p><PreprocessKeepComments><br>
    </p>
    <p></ClCompile></p>
    <p>=====</p>
    <br>
    </span><div><div class="gmail-h5"><div class="gmail-m_5903851996937101133moz-cite-prefix">Am 05.05.2018 um 16:31 schrieb J
      Decker:<br>
    </div>
    <blockquote type="cite">
      <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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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/CMak<wbr>e_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/su<wbr>pport.html</a><br>
              CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
              CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.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/opensou<wbr>rce/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/list<wbr>info/cmake</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="gmail-m_5903851996937101133mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>