[CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

Eric Noulard eric.noulard at gmail.com
Tue Jan 26 04:17:50 EST 2010


2010/1/26 Michael Wild <themiwi at gmail.com>:
>>
>> Michael is right and I should have tell you that too,
>> May be installing your FindXXX.cmake is not the good way to go at all.
>>
>> see reference on XXXXConfig.cmake there
>> http://www.cmake.org/pipermail/cmake/2010-January/034778.html
>
> It is not necessarily wrong, if e.g. the XXXConfig.cmake file must find some other package to work. But then, you install that FindXXX.cmake file along with the XXXConfig.cmake and in the XXXConfig.cmake file temporarily expand the CMAKE_MODULE_PATH variable before calling find_package (or include() it directly after setting variables such as YYY_FIND_REQUIRED etc).

I think the process (may be step by step explanation) on how to do
such thing is not that well documented :-)
I have no time (nor sufficient experience in this area) [yet] to do it
but would be glad to contribute
a started Wiki page on the subject.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list