findKDEWIN32.cmake patch

Ralf Habacker ralf.habacker at freenet.de
Sat Dec 15 01:44:22 CET 2007


Saro Engels schrieb:
> This is a small patch since it seems the mingw and msvc subfolder of 
> kdewin32 are not included if compiling within the cmake step.
>
> It seems to work under mingw, but I would prefer somebody to look over 
> the patch.
>

         set(KDEWIN32_INCLUDES ${KDEWIN32_INCLUDE_DIR} ${KDEWIN32_INCLUDE_DIR}/mingw ${QT_INCLUDES})
+        set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -I${KDEWIN32_INCLUDE_DIR}/mingw")


This is a duplicated definition. KDEWIN32_INCLUDES includes all required include dirs and is used in KDE4Internal.cmake 

line 667:   set( _KDE4_PLATFORM_INCLUDE_DIRS ${KDEWIN32_INCLUDES})
line 1022:  set(KDE4_INCLUDES ${QT_INCLUDES} ${KDE4_INCLUDE_DIR} ${KDE4_INCLUDE_DIR}/KDE ${_KDE4_PLATFORM_INCLUDE_DIRS} )

If kdewin32 related include pathes are not available you should check if they added to in KDE4_INCLUDES

Ralf 




More information about the Kde-buildsystem mailing list