Some bugfixing!

Alexander Neundorf neundorf at kde.org
Tue Dec 9 23:40:40 CET 2008


On Tuesday 09 December 2008, Christian Ehrlicher wrote:
> Michael Seydl schrieb:
> > Hi!
> >
> > Tried to build kdesupport from the scratch and encountered some
> > problems. I already prepared a patch against the latest trunk to fix the
> > building issues. Mostly fixes on the CMakeFiles.
> >
> > I'm working with CMake 2.6-patch2 from the kde-installer.
> >
> > Now everything works fine form me.
> >
> > Hope that helps.
>
> Index: kdewin32/CMakeLists.txt
> ===================================================================
> --- kdewin32/CMakeLists.txt	(revision 895040)
> +++ kdewin32/CMakeLists.txt	(working copy)
> @@ -50,7 +50,7 @@
>       add_subdirectory(tests)
>   endif(BUILD_TESTS)
>
> -configure_file(${CMAKE_SOURCE_DIR}/include/winposix_export.h.cmake
> ${CMAKE_BINARY_DIR}/include/winposix_export.h)
> +configure_file(${CMAKE_SOURCE_DIR}/kdewin32/include/winposix_export.h.cmak
>e ${CMAKE_BINARY_DIR}/include/winposix_export.h)
>
>   # find the headers
>   file(GLOB _source_headers  include/*.h)
>
>
> This will break kdewin32 build when building standalone (which is the
> normal way).

Two options to make this work are:
use CMAKE_CURRENT_SOURCE_DIR, this is always just the current source 
directory, so it would be 
${CMAKE_CURRENT_SOURCE_DIR}/include/winposix_export.h.cmake

Or, you have a project() call with "kdewin32", so you can also use 
kdewin32_SOURCE_DIR and kdewin32_BINARY_DIR, which will always be the 
souce/binary dir for the directory where the project()-call is made.

Alex


More information about the Kde-windows mailing list