File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ LIST ( APPEND PROTOTYPES "#define GRASS_GISDEFS_H\n" )
129
129
LIST ( APPEND PROTOTYPES "extern \" C\"\n " )
130
130
LIST ( APPEND PROTOTYPES "{\n " )
131
131
LIST ( APPEND PROTOTYPES "#include <grass/gis.h>\n " )
132
- LIST ( APPEND PROTOTYPES "}\n " )
133
132
LIST ( APPEND PROTOTYPES "int GRASS_LIB_EXPORT G_set_error_routine(int (*)(const char *, int))\;\n " )
134
133
135
134
SET ( FUNCTIONS_MAP "// Auto generated by cmake, do not edit\n " )
@@ -183,12 +182,17 @@ FOREACH( ROW ${HEADER_FILE} )
183
182
ENDFOREACH ( FN )
184
183
ENDFOREACH ( ROW )
185
184
185
+ LIST ( APPEND PROTOTYPES "}\n " )
186
+
186
187
FILE (WRITE "${CMAKE_CURRENT_BINARY_DIR} /qgsgrassgislibfunctions.cpp" ${FUNCTIONS_MAP} )
187
188
FILE (WRITE "${CMAKE_CURRENT_BINARY_DIR} /qgsgrassgislibfunctions.h" ${PROTOTYPES} )
188
189
189
-
190
190
# Build fake library
191
- SET (FAKE_LIB_GRASS_GIS "grass_gis.${GRASS_VERSION} " )
191
+ IF (MSVC )
192
+ SET (FAKE_LIB_GRASS_GIS "libgrass_gis.${GRASS_VERSION} " )
193
+ ELSE (MSVC )
194
+ SET (FAKE_LIB_GRASS_GIS "grass_gis.${GRASS_VERSION} " )
195
+ ENDIF (MSVC )
192
196
ADD_LIBRARY ( ${FAKE_LIB_GRASS_GIS} MODULE qgsgrassgislib.cpp qgsgrassgislibfunctions.cpp )
193
197
194
198
SET_TARGET_PROPERTIES (${FAKE_LIB_GRASS_GIS} PROPERTIES
You can’t perform that action at this time.
0 commit comments