GRIB-649: in developer mode take the samples and definitions from build directory

This commit is contained in:
Shahram Najm 2014-11-25 13:21:39 +00:00
parent 5f33c84b08
commit 65573cdbc5
1 changed files with 8 additions and 2 deletions

View File

@ -170,11 +170,17 @@ endif()
###############################################################################
# contents
if( NOT ${DEVELOPER_MODE} )
set( grib_api_default_data_prefix ${CMAKE_INSTALL_PREFIX} )
else()
set( grib_api_default_data_prefix ${CMAKE_BINARY_DIR} )
endif()
if( NOT DEFINED GRIB_API_DEFINITION_PATH )
set( GRIB_API_DEFINITION_PATH ${CMAKE_INSTALL_PREFIX}/share/grib_api/definitions )
set( GRIB_API_DEFINITION_PATH ${grib_api_default_data_prefix}/share/grib_api/definitions )
endif()
if( NOT DEFINED GRIB_API_SAMPLES_PATH )
set( GRIB_API_SAMPLES_PATH ${CMAKE_INSTALL_PREFIX}/share/grib_api/samples )
set( GRIB_API_SAMPLES_PATH ${grib_api_default_data_prefix}/share/grib_api/samples )
endif()
### config header