Re: [CMake] cmake source tree pollution ?
It seems to be the cause. Thanks Vania On 09/12/2016 09:42 AM, Magnus Therning wrote: Bruce Stephens writes: Looks like https://github.com/redguardtoo/cpputils-cmake might be involved... If that is the case then this section could be of interest: https://github.com/redguardtoo/cpputils-cmake#stop-creating-makefiles-for-flymake /M -- 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
Re: [CMake] cmake source tree pollution ?
Bruce Stephens writes: > Looks like https://github.com/redguardtoo/cpputils-cmake might be involved... If that is the case then this section could be of interest: https://github.com/redguardtoo/cpputils-cmake#stop-creating-makefiles-for-flymake /M -- Magnus Therning OpenPGP: 0x927912051716CE39 email: mag...@therning.org jabber: mag...@therning.org twitter: magthe http://therning.org/magnus The man who is denied the opportunity of taking decisions of importance begins to regard as important the decisions he is allowed to take. — C Northcote Parkinson signature.asc Description: PGP signature -- 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
Re: [CMake] cmake source tree pollution ?
Looks like https://github.com/redguardtoo/cpputils-cmake might be involved... On Fri, Sep 9, 2016 at 5:04 PM, Vania Joloboff 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 >>> wrote: >>> >>> Hi, >>> >>> I have started to use CMake for my software. >>> I build in a separate directory using : >>> $> cmake -G "Unix Makefiles" >>> >>> 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 /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
Re: [CMake] cmake source tree pollution ?
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 wrote: Hi, I have started to use CMake for my software. I build in a separate directory using : $> cmake -G "Unix Makefiles" 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 /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
Re: [CMake] cmake source tree pollution ?
On Fri, Sep 9, 2016 at 4: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: 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 wrote: >> >> Hi, >> >> I have started to use CMake for my software. >> I build in a separate directory using : >> $> cmake -G "Unix Makefiles" >> >> 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 /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
Re: [CMake] cmake source tree pollution ?
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 wrote: > > Hi, > > I have started to use CMake for my software. > I build in a separate directory using : > $> cmake -G "Unix Makefiles" > > 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 /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
[CMake] cmake source tree pollution ?
Hi, I have started to use CMake for my software. I build in a separate directory using : $> cmake -G "Unix Makefiles" 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 /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