<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Mike,<br>
      <br>
      The externalproject_add command has an option that might do what
      you want:<br>
      <a class="moz-txt-link-freetext" href="https://cmake.org/cmake/help/v3.8/module/ExternalProject.html">https://cmake.org/cmake/help/v3.8/module/ExternalProject.html</a><br>
      <br>
      See: <br>
      <dl class="docutils">
        <dt><code class="docutils literal"><span class="pre">PATCH_COMMAND</span>
            <span class="pre"><cmd>...</span></code></dt>
        <dd>Command to patch downloaded source</dd>
      </dl>
      <p>Regards,<br>
        Micha<br>
      </p>
      <br>
      <br>
      On 15-03-17 07:51, mike lojkovic wrote:<br>
    </div>
    <blockquote
cite="mid:CADGhccf9q_APLrKoN2WgaP2PkKKqOLSmKDjMtz25Tv7JmKP6QA@mail.gmail.com"
      type="cite">
      <pre wrap="">So, I'm trying to get my project to work on Windows, as well as Linux.
Currently, everything compiles fine on Linux. I've gotten it to
compile in the past on Windows, but since then have reinstalled
Windows, and forgotten the precise steps needed to manually setup Lua,
so CMake can find it. So, I assume just add Lua to my project with
ExternalProject_Add, but they use make and the makefil is configured
for Linux.

The two options I have are either patch their makefile to build
correctly through cygwin, (I'm just worried this might lead to issues
with producing a binary requiring cygwin) or add a CMakeLists.txt file
and patch it in after the download ends. How would I go about adding
custom CMakeLists.txt file to their project after the download
finishes?
</pre>
    </blockquote>
    <br>
  </body>
</html>