mirror of https://github.com/ecmwf/eccodes.git
GRIB-786: cmake run is slow due to copying definitions to build dir
This commit is contained in:
parent
d9424f01e9
commit
80f57efcb7
|
@ -20,15 +20,13 @@ install( DIRECTORY budg bufr cdf common grib1 grib2 gts mars metar tide hdf5 wr
|
|||
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
|
||||
|
||||
# copy the definitions to the build directory
|
||||
|
||||
file( COPY ${definition_files} ${table_files} ${text_files}
|
||||
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions )
|
||||
|
||||
file( COPY budg bufr cdf common grib1 grib2 gts mars metar tide hdf5 wrap
|
||||
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions
|
||||
FILES_MATCHING
|
||||
PATTERN "*.def"
|
||||
PATTERN "*.txt"
|
||||
PATTERN "*.list"
|
||||
PATTERN "*.table"
|
||||
PATTERN "4.2.192.*.table" EXCLUDE )
|
||||
#file( COPY ${definition_files} ${table_files} ${text_files}
|
||||
# DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions )
|
||||
#file( COPY budg bufr cdf common grib1 grib2 gts mars metar tide hdf5 wrap
|
||||
# DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions
|
||||
# FILES_MATCHING
|
||||
# PATTERN "*.def"
|
||||
# PATTERN "*.txt"
|
||||
# PATTERN "*.list"
|
||||
# PATTERN "*.table"
|
||||
# PATTERN "4.2.192.*.table" EXCLUDE )
|
||||
|
|
|
@ -10,8 +10,7 @@ fi
|
|||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
# use definitions from binary dir to test if installation will be correct
|
||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||
export ECCODES_DEFINITION_PATH
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ fi
|
|||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
# use definitions from binary dir to test if installation will be correct
|
||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||
export ECCODES_DEFINITION_PATH
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ fi
|
|||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
# use definitions from binary dir to test if installation will be correct
|
||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||
export ECCODES_DEFINITION_PATH
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@ fi
|
|||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
# use definitions from binary dir to test if installation will be correct
|
||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
||||
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||
export ECCODES_DEFINITION_PATH
|
||||
|
||||
|
|
Loading…
Reference in New Issue