Skip to content
Snippets Groups Projects
Commit 742f0554 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Try to use FetchContent to install ckf ported from Belle.

parent 1404ce43
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ endif() ...@@ -29,6 +29,7 @@ endif()
list(PREPEND CMAKE_MODULE_PATH $ENV{PANDORAPFA}/cmakemodules) list(PREPEND CMAKE_MODULE_PATH $ENV{PANDORAPFA}/cmakemodules)
list(PREPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") # (Find*.cmake) list(PREPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") # (Find*.cmake)
include(cmake/CEPCSWOptions.cmake)
include(cmake/CEPCSWDependencies.cmake) include(cmake/CEPCSWDependencies.cmake)
add_subdirectory(Analysis) add_subdirectory(Analysis)
......
# Define necessary options
##############################################################################
## CKF Belle
##############################################################################
option(CEPCSW_USE_SYSTEM_CKF_BELLE
"Use the existing installation of CKF BELLE"
TRUE)
if (CEPCSW_USE_SYSTEM_CKF_BELLE)
message("Try to use an existing installation of CKF BELLE")
else()
message("Try to use an internal installation of CKF BELLE")
include(FetchContent)
FetchContent_Declare(
ckf_belle
GIT_REPOSITORY https://code.ihep.ac.cn/cepc/externals/ckf_belle.git
GIT_TAG 11624a552a9d2382bba3ce9ed9b0cf2d05a89b6e
)
FetchContent_MakeAvailable(ckf_belle)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment