Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build fix for GRASS on mingw/cygwin. I hope it works on other systems…
… too...

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7950 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 13, 2008
1 parent 0d8416e commit 7e20fe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/grass/CMakeLists.txt
Expand Up @@ -16,7 +16,7 @@ IF (NOT MSVC)
ENDIF (NOT MSVC)

IF (WIN32)
ADD_DEFINITIONS("-DGRASS_EXPORT=__declspec(dllimport)")
ADD_DEFINITIONS("\"-DGRASS_EXPORT=__declspec(dllimport)\"")
ELSE (WIN32)
ADD_DEFINITIONS("-DGRASS_EXPORT=")
ENDIF (WIN32)
Expand Down
4 changes: 2 additions & 2 deletions src/providers/grass/CMakeLists.txt
Expand Up @@ -33,7 +33,7 @@ INCLUDE_DIRECTORIES (
ADD_LIBRARY (qgisgrass SHARED ${GRASS_LIB_SRCS})

IF (WIN32)
SET_TARGET_PROPERTIES(qgisgrass PROPERTIES COMPILE_FLAGS "-DGRASS_EXPORT=__declspec(dllexport)" )
SET_TARGET_PROPERTIES(qgisgrass PROPERTIES COMPILE_FLAGS "\"-DGRASS_EXPORT=__declspec(dllexport)\"" )
ELSE (WIN32)
SET_TARGET_PROPERTIES(qgisgrass PROPERTIES COMPILE_FLAGS "-DGRASS_EXPORT=" )
ENDIF (WIN32)
Expand All @@ -48,7 +48,7 @@ TARGET_LINK_LIBRARIES (qgisgrass
ADD_LIBRARY (grassprovider MODULE ${GRASS_PROVIDER_SRCS})

IF (WIN32)
SET_TARGET_PROPERTIES(grassprovider PROPERTIES COMPILE_FLAGS "-DGRASS_EXPORT=__declspec(dllimport)" )
SET_TARGET_PROPERTIES(grassprovider PROPERTIES COMPILE_FLAGS "\"-DGRASS_EXPORT=__declspec(dllimport)\"" )
ELSE (WIN32)
SET_TARGET_PROPERTIES(grassprovider PROPERTIES COMPILE_FLAGS "-DGRASS_EXPORT=" )
ENDIF (WIN32)
Expand Down

0 comments on commit 7e20fe5

Please sign in to comment.