cmake silently dropping includes in koffice

Alexander Neundorf neundorf at kde.org
Mon Aug 28 23:59:51 CEST 2006


On Monday 28 August 2006 23:50, Benjamin Reed wrote:
> Somehow, in my build, -I/opt/kde4-deps/include has gone missing.
>
> ---(snip!)---
> /usr/bin/c++   -Dpigment_EXPORTS -arch i386 -arch ppc -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk  -fno-common -O2 -g
>  -fPIC -I/Users/ranger/cvs/packages/compile.build/koffice/libs/pigment
> -I/Users/ranger/cvs/packages/source.build/koffice/libs/pigment
> -I/Users/ranger/cvs/packages/source.build/ko
> ffice -I/Users/ranger/cvs/packages/compile.build/koffice
> -I/Users/ranger/cvs/packages/source.build/koffice/libs/kofficecore
> -I/Users/ranger/cvs/packages/compile.build/koffice/lib
> s/kofficecore -I/Users/ranger/cvs/packages/source.build/koffice/libs/store
> -I/Users/ranger/cvs/packages/compile.build/koffice/libs/store
> -I/opt/qt4/include -I/opt/qt4/include/Qt
> -I/opt/qt4/mkspecs/default -I/opt/qt4/include/QtCore
> -I/opt/qt4/include/QtGui -I/opt/qt4/include/Qt3Support
> -I/opt/qt4/include/QtAssistant -I/opt/qt4/include/QtDesigner -I/opt/qt
> 4/include/QtNetwork -I/opt/qt4/include/QtOpenGL
> -I/opt/qt4/include/QtSql -I/opt/qt4/include/QtXml
> -I/opt/qt4/include/QtSvg -I/opt/qt4/include/QtUiTools
> -I/opt/qt4/include/QtTest
> -I/opt/qt4/include/QtDBus -I/opt/kde4/include
> -I/opt/kde4-deps/include/OpenEXR   -F/opt/qt4/lib -L/opt/qt4/lib
> -D__APPLE_KDE__ -DQT3_SUPPORT -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_
> REENTRANT -DQT3_SUPPORT_WARNINGS -DKDE_DEPRECATED_WARNINGS
> -DHAVE_CONFIG_H=1 -o
> libs/pigment/CMakeFiles/pigment.dir/KoColorSpaceRegistry.o -c
> /Users/ranger/cvs/packages/source.bu
> ild/koffice/libs/pigment/KoColorSpaceRegistry.cpp
> /Users/ranger/cvs/packages/source.build/koffice/libs/pigment/KoColorSpaceRe
>gistry.cpp:34:18: error: lcms.h: No such file or directory
> /Users/ranger/cvs/packages/source.build/koffice/libs/pigment/KoColorSpaceRe
>gistry.cpp:34:18: error: lcms.h: No such file or directory
> ---(snip!)---
>
> however, my CMakeCache.txt has the LCMS bits set:
>
> ---(snip!)---
> $ grep LCMS CMakeCache.txt
> LCMS_INCLUDE_DIR:PATH=/opt/kde4-deps/include
> LCMS_LIBRARIES:FILEPATH=/opt/kde4-deps/lib/liblcms.dylib
> LCMS_COMPILE_RESULT:INTERNAL=TRUE
> //Advanced flag for variable: LCMS_INCLUDE_DIR
> LCMS_INCLUDE_DIR-ADVANCED:INTERNAL=1
> //Advanced flag for variable: LCMS_LIBRARIES
> LCMS_LIBRARIES-ADVANCED:INTERNAL=1
> //Advanced flag for variable: LCMS_VERSION
> LCMS_VERSION-ADVANCED:INTERNAL=1
> LCMS_VERSION:INTERNAL=115
> ---(snip!)---
>
> and the CMakeLists.txt is including them:
>
> ---(snip!)---
> include_directories( ${KOFFICECORE_INCLUDES} ${KDE4_INCLUDE_DIR}
> ${QT_INCLUDES} ${LCMS_INCLUDE_DIR} )
>
> find_package(LCMS)

Doesn't this add LCMS_INCLUDE_DIR before it gets defined by 
find_package(LCMS) ? If it's done in this order, LCMS_INCLUDE_DIR will most 
probably be empty in the INCLUDE_DIRECTORIES() call.

Bye
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