2015-08-28 13:00:17 +00:00
|
|
|
if( @PNAME@_IS_BUILD_DIR_EXPORT )
|
|
|
|
set( ECCODES_DEFINITION_PATH @CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@ )
|
|
|
|
set( ECCODES_SAMPLES_PATH @CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@ )
|
|
|
|
set( ECCODES_IFS_SAMPLES_PATH @CMAKE_BINARY_DIR@/@ECCODES_IFS_SAMPLES_SUFF@ )
|
|
|
|
else()
|
2019-04-30 12:51:00 +00:00
|
|
|
if( NOT DEFINED eccodes_BASE_DIR ) # ecbuild 2.x
|
|
|
|
get_filename_component( eccodes_BASE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE )
|
|
|
|
endif()
|
|
|
|
set( ECCODES_DEFINITION_PATH ${eccodes_BASE_DIR}/@ECCODES_DEFINITION_SUFF@ )
|
|
|
|
set( ECCODES_SAMPLES_PATH ${eccodes_BASE_DIR}/@ECCODES_SAMPLES_SUFF@ )
|
|
|
|
set( ECCODES_IFS_SAMPLES_PATH ${eccodes_BASE_DIR}/@ECCODES_IFS_SAMPLES_SUFF@ )
|
2015-08-28 13:00:17 +00:00
|
|
|
endif()
|