mirror of https://github.com/ecmwf/eccodes.git
Fix warning in cmake re definitions/samples
This commit is contained in:
parent
d0276b9f1b
commit
b4433ef5c9
|
@ -21,9 +21,11 @@ install( DIRECTORY budg bufr cdf common grib1 grib2 gts mars metar tide hdf5 wr
|
||||||
|
|
||||||
# link to the definitions. See GRIB-786
|
# link to the definitions. See GRIB-786
|
||||||
file( MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME} )
|
file( MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME} )
|
||||||
execute_process( COMMAND "${CMAKE_COMMAND}" "-E" "create_symlink"
|
if( NOT EXISTS "${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions" )
|
||||||
|
execute_process( COMMAND "${CMAKE_COMMAND}" "-E" "create_symlink"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
"${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions" )
|
"${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/definitions" )
|
||||||
|
endif()
|
||||||
|
|
||||||
# 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}
|
||||||
|
|
|
@ -13,7 +13,8 @@ set( ECCODES_SAMPLES_FILES ${ECCODES_SAMPLES_FILES} PARENT_SCOPE )
|
||||||
|
|
||||||
# link to the samples in the build directory. See GRIB-786
|
# link to the samples in the build directory. See GRIB-786
|
||||||
file( MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME} )
|
file( MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME} )
|
||||||
execute_process( COMMAND "${CMAKE_COMMAND}" "-E" "create_symlink"
|
if( NOT EXISTS "${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/samples" )
|
||||||
|
execute_process( COMMAND "${CMAKE_COMMAND}" "-E" "create_symlink"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
"${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/samples" )
|
"${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/samples" )
|
||||||
|
endif()
|
Loading…
Reference in New Issue