[CMake] cmake source tree pollution ?
Michael Ellery
mellery451 at gmail.com
Fri Sep 9 11:45:48 EDT 2016
This kinda’ sounds like you are doing an in-source build. Are you certain that your currrent/working directory is different from your source tree root when you run cmake? The typical way of doing this is just to make a subdirectory of your source root:
mkdir my_build
cd my_build
cmake ..
make
> On Sep 9, 2016, at 8:17 AM, Vania Joloboff <vania.joloboff at inria.fr> wrote:
>
> Hi,
>
> I have started to use CMake for my software.
> I build in a separate directory using :
> $> cmake -G "Unix Makefiles" <path_to_source>
>
> Everything is built correctly and the software works fine.
> However all of my source code directories get polluted.
> Into each source directory, a new Makefile is created.
> All of these Makefiles are identical. They are
>
> -------------------------------------------------
> # Generated by cpputils-cmake.
> include <path_to_corresponding_build_dir>/flags.make
> .PHONY: check-syntax
> check-syntax:
> ${CC} -o /dev/null ${C_FLAGS} ${C_DEFINES} -I/usr/src/linux/include -DNDEBUG -S ${CHK_SOURCES}
> ----------------------------------------------------
>
> Any clue ??
>
> Vania
>
> --
>
> 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
More information about the CMake
mailing list