[CMake] Add search paths for FIND_PACKAGE ?

Gonzalo Garramuño ggarra at advancedsl.com.ar
Mon Nov 19 14:18:59 EST 2007


Stephen Collyer wrote:
> This would seem to be a very frequently asked question
> but I can't find it anywhere in the wiki or FAQ:
> how do I tell FIND_PACKAGE to search on additional paths
> to the default set, so I can work with packages installed
> in non-standard locations ?
> 

#
# Modify CMake's module path so our custom modules take precedence over
# cmake's default ones.
#
SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/modules" 
${CMAKE_MODULE_PATH})

If what you mean are finding libs, include files or executables, refer 
to the variables in Modules/Platform/UnixPaths.cmake or 
Modules/Platform/WindowsPaths.cmake in the cmake install.


-- 
Gonzalo Garramuño
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy


More information about the CMake mailing list