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 )
|
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
|
||||||
|
|
||||||
# copy the definitions to the build directory
|
# copy the definitions to the build directory
|
||||||
|
#file( COPY ${definition_files} ${table_files} ${text_files}
|
||||||
file( COPY ${definition_files} ${table_files} ${text_files}
|
# DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions )
|
||||||
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
|
||||||
file( COPY budg bufr cdf common grib1 grib2 gts mars metar tide hdf5 wrap
|
# FILES_MATCHING
|
||||||
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions
|
# PATTERN "*.def"
|
||||||
FILES_MATCHING
|
# PATTERN "*.txt"
|
||||||
PATTERN "*.def"
|
# PATTERN "*.list"
|
||||||
PATTERN "*.txt"
|
# PATTERN "*.table"
|
||||||
PATTERN "*.list"
|
# PATTERN "4.2.192.*.table" EXCLUDE )
|
||||||
PATTERN "*.table"
|
|
||||||
PATTERN "4.2.192.*.table" EXCLUDE )
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
# use definitions from binary dir to test if installation will be correct
|
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
# use definitions from binary dir to test if installation will be correct
|
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
# use definitions from binary dir to test if installation will be correct
|
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ fi
|
||||||
proj_dir=@PROJECT_SOURCE_DIR@
|
proj_dir=@PROJECT_SOURCE_DIR@
|
||||||
data_dir=@PROJECT_BINARY_DIR@/data
|
data_dir=@PROJECT_BINARY_DIR@/data
|
||||||
|
|
||||||
# use definitions from binary dir to test if installation will be correct
|
def_dir="@PROJECT_SOURCE_DIR@/definitions"
|
||||||
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
|
||||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||||
export ECCODES_DEFINITION_PATH
|
export ECCODES_DEFINITION_PATH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue