2011/10/7 Stephen Kelly <steve...@gmail.com>: > Stephen Kelly wrote: > >> Stephen Kelly wrote: >> >>>> >>>> such that kwtyle is run as a pre-commit hook. >>>> >>> >>> The instructions don't seem to work: >>> >> >> Oops, they do work. I had missed the part about creating a new repo in my >> hooks dir. > > :/ > > Not finding some conf file: > > stephen@hal:~/dev/src/cmake{cmake-link-interface-libraries}$ git commit --am > pre-commit hook failure > ----------------------- > > The file '' does not exist. > > Please run > > git config hooks.KWStyle.conf path/to/KWStyle.conf.xml > $ sudo updatedb > $ locate KWStyle.conf.xml
You should find "CMake.kws.xml" and "CMakeMoreChecks.kws.xml" in the CMake build tree. Those are configured files from CMake/Utilities/KWStyle dir. I do not remember for sure but you may have to set CMAKE_USE_KWSTYLE to ON in order to get those generated file in the CMake build tree. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers