# Magnus Homann svn hack
# Required?
SET(CMAKE_BACKWARDS_COMPATIBILITY "2.4")

# See if we have svn installed
FIND_PROGRAM(SVNVERSION svnversion)

# Read the version if installed, else set to "unknown"
IF (SVNVERSION)
        EXEC_PROGRAM(${SVNVERSION} ARGS @CMAKE_CURRENT_SOURCE_DIR@ OUTPUT_VARIABLE MYVERSION)
ELSE (SVNVERSION)
        SET(MYVERSION unknown)
ENDIF (SVNVERSION)

# Configure the marblesvnversion.h
CONFIGURE_FILE("@CMAKE_CURRENT_SOURCE_DIR@/cmake_templates/marblesvnversion.h.in_cmake"
               "@CMAKE_CURRENT_BINARY_DIR@/marblesvnversion.h")
