[CMake] FIND_PACKAGE from another Project

hsanson hsanson at gmail.com
Fri Jun 6 05:42:16 EDT 2008


 From the CMake 2.4 documentation I get:

Directories listed in CMAKE_MODULE_PATH are searched for files called 
"Find<name>.cmake". If no such file is found, it is expected that the 
package is another project built by CMake that has a 
"<name>Config.cmake" file. A cache entry called <name>_DIR is created 
and is expected to be set to the directory containing this file.


It seems that CMake does not generate this "<name>Config.cmake" file nor 
it sets the cache entry <name>_DIR. If this is the case how can I create 
the file and the respective cache entry?? and were in my projects 
CMakeLists.txt files shall I do it??


thanks
Horacio


More information about the CMake mailing list