kde's cmake files/macros

Peter Kümmel syntheticpp at gmx.net
Thu Feb 9 23:12:27 CET 2006


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?

Peter


More information about the Kde-buildsystem mailing list