kde's cmake files/macros
Brad King
brad.king at kitware.com
Fri Feb 10 00:25:46 CET 2006
Peter Kümmel wrote:
> William A. Hoffman wrote:
>>kdeui/CMakeFiles/CMakeDirectoryInformation.cmake
[snip]
> # The C and CXX include file search paths:
> SET(CMAKE_C_INCLUDE_PATH
[snip]
> "ENV{MSSdk}/include"
The only way this line can show up is if someone writes "ENV{MSSdk}"
without the leading "$".
> 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?
The first of the two blocks above should be fine. I cannot reproduce
the problem. What compiler/platform/version are you using?
-Brad
More information about the Kde-buildsystem
mailing list