mirror of https://github.com/ecmwf/eccodes.git
Merge FetchContent_Declare and FetchContent_Populate
This commit is contained in:
parent
5437cee025
commit
f25cedfad2
|
@ -22,12 +22,10 @@ find_package( ecbuild 3.7 HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOUR
|
||||||
if(NOT ecbuild_FOUND)
|
if(NOT ecbuild_FOUND)
|
||||||
message(STATUS "Fetching ecbuild...")
|
message(STATUS "Fetching ecbuild...")
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Populate(ecbuild
|
||||||
ecbuild
|
|
||||||
GIT_REPOSITORY https://github.com/ecmwf/ecbuild.git
|
GIT_REPOSITORY https://github.com/ecmwf/ecbuild.git
|
||||||
GIT_TAG 3.8.5
|
GIT_TAG 3.8.5
|
||||||
)
|
)
|
||||||
FetchContent_Populate(ecbuild)
|
|
||||||
find_package( ecbuild 3.7 REQUIRED HINTS ${ecbuild_SOURCE_DIR})
|
find_package( ecbuild 3.7 REQUIRED HINTS ${ecbuild_SOURCE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue