Skip to content

Commit

Permalink
Write qgssvnversion.h on windows only if doesn't exist yet
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6658 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 22, 2007
1 parent b5f9d75 commit 05474e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -193,7 +193,10 @@ IF (WIN32)
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR})

# this should work with both msys and mingw generators
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)

Expand Down

0 comments on commit 05474e4

Please sign in to comment.