Looks like https://github.com/redguardtoo/cpputils-cmake might be involved...
On Fri, Sep 9, 2016 at 5:04 PM, Vania Joloboff <vania.jolob...@inria.fr> wrote: > On 09/09/2016 05:45 PM, Michael Ellery 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: >> >> mkdir my_build >> cd my_build >> cmake .. >> make >> > Yes this is what I do. And indeed there is a big Makefile with 730 lines > created in my build directory, that builds the software. > The source directories get polluted only with the 5 lines Makefiles attached > in my previous mail. > It seems only one thing related to cpp-utils is writing where it should not. > All binaries are built in my build directory. > I do have a full hierarchy of CMakefiles directories that contain what they > should contain. > The top level build/CMakefiles directory does contain the CMakeOutput.log > file > but I can't make sense of what is wrong at which point. > It contains also a fille CMakeFiles/TargetDirectories.txt with the right > directories > I list below the first 5 lines. They are correct and you can see there is a > build directory > The source is in trunk > > /home/vjf/workspace/merging/simsoc/trunk/build/libsimsoc/tools/debugger/CMakeFiles/debugger.dir > /home/vjf/workspace/merging/simsoc/trunk/build/examples/SerialISS/CMakeFiles/build_serial_iss.dir > /home/vjf/workspace/merging/simsoc/trunk/build/utils/ISC/CMakeFiles/isc.dir > /home/vjf/workspace/merging/simsoc/trunk/build/examples/TI_AM1707/CMakeFiles/ti-am1707.dir > /home/vjf/workspace/merging/simsoc/trunk/build/examples/SPEAr/CMakeFiles/spear.dir > > > The source directory (trunk) remains entirely clean, > except for these strange 5 lines Makefiles. > > Vania > > >>> 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