Quantcast

Is it possible to patch a make project with CMakeLists.txt, through external_project_add?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Is it possible to patch a make project with CMakeLists.txt, through external_project_add?

mike lojkovic
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?
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is it possible to patch a make project with CMakeLists.txt, through external_project_add?

Micha Hergarden
Hello Mike,

The externalproject_add command has an option that might do what you want:
https://cmake.org/cmake/help/v3.8/module/ExternalProject.html

See:
PATCH_COMMAND <cmd>...
Command to patch downloaded source

Regards,
Micha



On 15-03-17 07:51, mike lojkovic wrote:
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?


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

signature.asc (537 bytes) Download Attachment
Loading...