mirror of https://github.com/ecmwf/eccodes.git
Cleaner way to find ecbuild
This commit is contained in:
parent
c427b73dc3
commit
d2908a0c1b
|
@ -18,13 +18,11 @@
|
||||||
|
|
||||||
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )
|
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )
|
||||||
|
|
||||||
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild/cmake" )
|
find_package( ecbuild 3.4 REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild)
|
||||||
find_package( ecbuild 3.4 REQUIRED )
|
|
||||||
|
|
||||||
# Initialise project
|
# Initialise project
|
||||||
project( eccodes VERSION 2.19.0 LANGUAGES C )
|
project( eccodes VERSION 2.19.0 LANGUAGES C )
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# system checks needed for eccodes_config.h and some options like MEMFS
|
# system checks needed for eccodes_config.h and some options like MEMFS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue