Skip to content

Commit c2da041

Browse files
author
wonder
committed
Write qgssvnversion.h on windows only if doesn't exist yet
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6658 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 27df1b7 commit c2da041

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ IF (WIN32)
193193
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
194194

195195
# this should work with both msys and mingw generators
196-
WRITE_FILE(${CMAKE_BINARY_DIR}/qgssvnversion.h "#define QGSSVNVERSION \"svn_rev_unavailable\"")
196+
SET (SVNVER_H ${CMAKE_BINARY_DIR}/qgssvnversion.h)
197+
IF (NOT EXISTS ${SVNVER_H})
198+
WRITE_FILE(${SVNVER_H} "#define QGSSVNVERSION \"svn_rev_unavailable\"")
199+
ENDIF (NOT EXISTS ${SVNVER_H})
197200

198201
ELSE (WIN32)
199202

0 commit comments

Comments
 (0)