kde's cmake files/macros

William A. Hoffman billlist at nycap.rr.com
Fri Feb 10 00:02:28 CET 2006


At 05:12 PM 2/9/2006, Peter Kümmel wrote:
>William A. Hoffman wrote:
>> At 12:16 PM 2/9/2006, Alexander Neundorf wrote:
>> 
>>>> +MACRO_ADD_FILE_DEPENDENCIES(kspelldlg.cpp 
>>>> ${CMAKE_CURRENT_BINARY_DIR}/kspellui.h) +
>>>>  kde4_add_ui_files(kdeui_LIB_SRCS ${kdeui_UI} )
>>> Same here.
>> 
>> 
>> Peter I am looking into this problem.   It seems to be working
>> here on our visual studio nmake build.   Does it still not
>> work for you?
>> 
>> Can you send me the file:
>> 
>> kdeui/CMakeFiles/CMakeDirectoryInformation.cmake 
>> 
>> from a build where it does not work?
>> 
>> Thanks.
>> 
>> -Bill
>
>MSSdk is used in FindKDE4.cmake:
>
>      # add the MS SDK include directory if available
>      SET(MS_SDK_DIR $ENV{MSSdk})
>      IF (MS_SDK_DIR)
>         SET(KDEWIN32_INCLUDES ${KDEWIN32_INCLUDES} ${MS_SDK_DIR}\include )
>      ENDIF (MS_SDK_DIR)
>
>
>When I hard code my path (with space) all works fine!!!
>
>      # add the MS SDK include directory if available
>      SET(MS_SDK_DIR "c:\programme\microsoft sdk\include")
>      IF (MS_SDK_DIR)
>         SET(KDEWIN32_INCLUDES ${KDEWIN32_INCLUDES} ${MS_SDK_DIR} )
>      ENDIF (MS_SDK_DIR)
>
>
>So what's the right way to handle such a environment variable?

To handle spaces in the path, you need to double quote some things.

This should work:

SET(MS_SDK_DIR "$ENV{MSSdk}")
IF (MS_SDK_DIR)
         SET(KDEWIN32_INCLUDES ${KDEWIN32_INCLUDES} "${MS_SDK_DIR}" )
ENDIF (MS_SDK_DIR)



More information about the Kde-buildsystem mailing list