mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
17 lines
554 B
Plaintext
17 lines
554 B
Plaintext
# 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 qgssvnversion.h
|
|
CONFIGURE_FILE(@CMAKE_CURRENT_SOURCE_DIR@/qgssvnversion.h.in_cmake
|
|
@CMAKE_CURRENT_BINARY_DIR@/qgssvnversion.h) |