[cmake-developers] Setting the link interface and dependencies in one command

Eric Noulard eric.noulard at gmail.com
Fri Oct 7 14:51:14 EDT 2011


2011/10/7 Stephen Kelly <steveire at 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 at 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



More information about the cmake-developers mailing list