mirror of https://github.com/ecmwf/eccodes.git
CMake style
This commit is contained in:
parent
56ad3dbe72
commit
a8e29e46d2
|
@ -21,7 +21,7 @@ if( ENABLE_EXTRA_TESTS )
|
|||
endif()
|
||||
|
||||
# Copy other files - e.g. reference data, text files etc from the source data dir
|
||||
LIST(APPEND other_files
|
||||
list(APPEND other_files
|
||||
60_model_levels
|
||||
bitmap.diff
|
||||
ieee_test.good
|
||||
|
|
|
@ -24,7 +24,6 @@ foreach( child ${children} )
|
|||
endforeach()
|
||||
|
||||
if( HAVE_INSTALL_ECCODES_DEFINITIONS )
|
||||
|
||||
install( FILES ${definition_files} ${table_files} ${text_files}
|
||||
DESTINATION ${ECCODES_DEFINITION_SUFF}
|
||||
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
|
||||
|
@ -41,7 +40,6 @@ if(HAVE_INSTALL_ECCODES_DEFINITIONS)
|
|||
PATTERN "*.table"
|
||||
PATTERN "4.2.192.*.table" EXCLUDE
|
||||
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
|
||||
|
||||
endif()
|
||||
|
||||
# link to the definitions. See GRIB-786
|
||||
|
|
|
@ -58,8 +58,7 @@ if( HAVE_FORTRAN )
|
|||
add_custom_command( TARGET eccodes_f90 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/include
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/eccodes.mod ${CMAKE_BINARY_DIR}/include
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/grib_api.mod ${CMAKE_BINARY_DIR}/include
|
||||
)
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/grib_api.mod ${CMAKE_BINARY_DIR}/include )
|
||||
|
||||
# Add the eccodes module file as well
|
||||
#set(_eccodes_mod "${CMAKE_Fortran_MODULE_DIRECTORY}/eccodes.mod" )
|
||||
|
|
|
@ -14,7 +14,8 @@ add_custom_command(
|
|||
${CMAKE_CURRENT_BINARY_DIR}/memfs.c
|
||||
DEPENDS ${PROJECT_SOURCE_DIR}/memfs.py)
|
||||
|
||||
set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/memfs.c PROPERTIES OBJECT_DEPENDS
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/memfs.c PROPERTIES OBJECT_DEPENDS
|
||||
"${PROJECT_SOURCE_DIR}/memfs.py"
|
||||
# "${PROJECT_SOURCE_DIR}/memfs.py" ${definition_files}"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue