File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ ENDIF (APPLE)
60
60
# Fake GRASS gis library
61
61
#
62
62
63
+ # only process functions if qgsgrassgislibfunctions.cpp/h not present
64
+ # or gisdefs.h is newer
65
+
66
+ IF ("${GRASS_INCLUDE_DIR} /grass/gisdefs.h" IS_NEWER_THAN "${CMAKE_CURRENT_BINARY_DIR} /qgsgrassgislibfunctions.cpp" OR "${GRASS_INCLUDE_DIR} /grass/gisdefs.h" IS_NEWER_THAN "${CMAKE_CURRENT_BINARY_DIR} /qgsgrassgislibfunctions.h" )
67
+
63
68
# Generate function mapping for functions used in original version
64
69
# Create list of functions to be mapped
65
70
SET ( FUNCTIONS
@@ -497,6 +502,8 @@ LIST ( APPEND PROTOTYPES "}\n" )
497
502
FILE (WRITE "${CMAKE_CURRENT_BINARY_DIR} /qgsgrassgislibfunctions.cpp" ${FUNCTIONS_MAP} )
498
503
FILE (WRITE "${CMAKE_CURRENT_BINARY_DIR} /qgsgrassgislibfunctions.h" ${PROTOTYPES} )
499
504
505
+ ENDIF () # process functions
506
+
500
507
# Build fake library
501
508
IF (MSVC )
502
509
SET (FAKE_LIB_GRASS_GIS "libgrass_gis.${GRASS_VERSION} " )
You can’t perform that action at this time.
0 commit comments