On Fri, Sep 9, 2016 at 4:45 PM, Michael Ellery <mellery...@gmail.com> wrote: > 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:
Not to me. Looks like something (called cpputils, probably) is deliberately adding these Makefiles to the source tree. The check-syntax rule is something used by flymake-mode in Emacs (possibly other things, but that's the one I know of). [...] >> On Sep 9, 2016, at 8:17 AM, Vania Joloboff <vania.jolob...@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 > > -- > > 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 -- 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