multiple pathes in cmake variables
Alexander Neundorf
neundorf at kde.org
Sat Feb 11 17:38:17 CET 2006
On Saturday 11 February 2006 17:32, you wrote:
...
> CMAKE_INCLUDE_PATH should NOT be listed in any cmake list file.
> It is automatically used by find_path see cmFindPathCommand.cxx and
> cmMakefile::GetIncludeSearchPath. Same thing goes for CMAKE_LIBRARY_PATH.
So instead of
FIND_PATH(LIBXML2_INCLUDE_DIR libxml/xpath.h
${CMAKE_INCLUDE_PATH}/libxml2
${_LibXml2IncDir}/libxml2
/usr/include/libxml2
/usr/local/include/libxml2
)
the test should better be like this ?
FIND_PATH(LIBXML2_INCLUDE_DIR libxml2/libxml/xpath.h
${_LibXml2IncDir}
/usr/include
/usr/local/include
)
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list