Skip to content

Commit

Permalink
Backported change from 6658 to 0.8 brnach (dont overwrite qgssvnversi…
Browse files Browse the repository at this point in the history
…on.h with each build)

git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6659 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 22, 2007
1 parent 6a1cee8 commit c298c7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Expand Up @@ -183,11 +183,11 @@ INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
# create qgssvnversion.h

IF (WIN32)

# TODO: create qgssvnversion.h properly
ADD_CUSTOM_TARGET(svnversion ALL echo \\"#define QGSSVNVERSION \\\"svn_rev_unavailable\\\" \\" > qgssvnversion.h
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})

WRITE_FILE(${CMAKE_BINARY_DIR}/qgssvnversion.h "#define QGSSVNVERSION \"svn_rev_unavailable\"")
SET (SVNVER_H ${CMAKE_BINARY_DIR}/qgssvnversion.h)
IF (NOT EXISTS ${SVNVER_H})
WRITE_FILE(${SVNVER_H} "#define QGSSVNVERSION \"svn_rev_unavailable\"")
ENDIF (NOT EXISTS ${SVNVER_H})
ELSE (WIN32)

ADD_CUSTOM_TARGET(svnversion ALL
Expand Down

0 comments on commit c298c7c

Please sign in to comment.