On 03/13/2012 09:25 PM, David C. Rankin wrote:
Tim, Serghei,
When building TDE packages, if the cmake files do not properly find includes,
what is the proper way to tell cmake where the include is? The cmake site says
to use the CMAKE_INCLUDE_PATH environment variable. So I try:
export CMAKE_INCLUDE_PATH=/usr/include/apr-1
<snip>
Where is cmake getting the extra '.0' it
tacks on the end of the include path?
How to fix?
Got it!
## fix CMakeLists.txt
msg "Patching src/CMakeLists.txt to fix apr include path"
cd ${srcdir}/${pkgname#*-}
sed -i 's|/usr/include/apr-1.0|/usr/include/apr-1|' src/CMakeLists.txt
The build should still respect the export CMAKE_INCLUDE_PATH variable...
--
David C. Rankin, J.D.,P.E.