[CMake] Supress generation of a Makefile

Ryan Pavlik ryan.pavlik at gmail.com
Wed Mar 18 20:42:20 EDT 2015


If you can't/won't use CMake on all platforms (why? Seems like extra
maintenance effort)... You should be OK if you do an out of source build as
usually recommended for CMake; that is, generating the build files (by
running cmake in) in a different directory than your source code.

Ryan

On Wed, Mar 18, 2015, 6:00 PM aditya siram <aditya.siram at gmail.com> wrote:

> Hi all,
> I have a cross platform project where Linux/Mac users will use the
> standard "autoheader;autoconf;./configure .." routine, but on Windows users
> will do "cmake .; make".
>
> I am using CMake solely to substitute some variables in some subdirectory
> Makefile.in's.
>
> The problem is that there is an existing Makefile in the root of the
> project that must not be disturbed but keeps getting overwritten whenever I
> run "cmake .".
>
> How do I stop CMake from generating a Makefile?
>
> Thanks!
> -deech
> --
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150319/2c695924/attachment.html>


More information about the CMake mailing list