Skip to content
Browse files

don't _re_create fake grass lib sources on reconfigure unless gisdefs…

….h has changed, saves a lot of reconfigure time
  • Loading branch information
kyngchaos committed Apr 2, 2013
1 parent 2f2ca9f commit 00ae45befe545a2b0178ac8547333627a9c9d10b
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/providers/grass/CMakeLists.txt
@@ -60,6 +60,11 @@ ENDIF (APPLE)
# Fake GRASS gis library

# only process functions if qgsgrassgislibfunctions.cpp/h not present
# or gisdefs.h is newer

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")

# Generate function mapping for functions used in original version
# Create list of functions to be mapped
@@ -497,6 +502,8 @@ LIST ( APPEND PROTOTYPES "}\n" )
FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/qgsgrassgislibfunctions.cpp" ${FUNCTIONS_MAP})
FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/qgsgrassgislibfunctions.h" ${PROTOTYPES})

ENDIF() # process functions

# Build fake library

0 comments on commit 00ae45b

Please sign in to comment.
You can’t perform that action at this time.