Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Windows tweak for qgssvnversion.h - should work now for both MSYS and…
… MinGW generators

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6657 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 22, 2007
1 parent c9c5d09 commit 27df1b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Expand Up @@ -189,8 +189,11 @@ INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
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})
#ADD_CUSTOM_TARGET(svnversion ALL echo \\"#define QGSSVNVERSION \\\"svn_rev_unavailable\\\" \\" > qgssvnversion.h
# 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\"")

ELSE (WIN32)

Expand Down

0 comments on commit 27df1b7

Please sign in to comment.