[CMake] cmake source tree pollution ?

Vania Joloboff vania.joloboff at inria.fr
Fri Sep 9 11:17:17 EDT 2016


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



More information about the CMake mailing list