From 0f6e73b1e3d6e51bd0c2580e93d1543fd6fa6507 Mon Sep 17 00:00:00 2001
From: "lintao@ihep.ac.cn" <lintao@ihep.ac.cn>
Date: Fri, 14 Mar 2025 03:55:54 +0000
Subject: [PATCH] switch to external edm4cepc by default

---
 cmake/CEPCSWDependencies.cmake |  2 +-
 cmake/CEPCSWOptions.cmake      | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cmake/CEPCSWDependencies.cmake b/cmake/CEPCSWDependencies.cmake
index dec2acd8..5971d023 100644
--- a/cmake/CEPCSWDependencies.cmake
+++ b/cmake/CEPCSWDependencies.cmake
@@ -94,7 +94,7 @@ endif()
 
 if (CEPCSW_USE_SYSTEM_EDM4CEPC)
   message("Try to use an existing installation of EDM4CEPC")
-  find_package(EDM4CEPC)
+  find_package(EDM4CEPC REQUIRED)
 else()
   message("Try to use an internal installation of EDM4CEPC")
   include("${CMAKE_CURRENT_LIST_DIR}/internal_edm4cepc.cmake")
diff --git a/cmake/CEPCSWOptions.cmake b/cmake/CEPCSWOptions.cmake
index 9ec71b8f..5ec3fd5f 100644
--- a/cmake/CEPCSWOptions.cmake
+++ b/cmake/CEPCSWOptions.cmake
@@ -19,23 +19,23 @@ option(CEPCSW_USE_SYSTEM_CKF_BELLE
        "Use the existing installation of CKF BELLE. Otherwise the internal version will be used."
        FALSE)
 
-option(CEPCSW_USER_SYSTEM_EDM4CEPC
+option(CEPCSW_USE_SYSTEM_EDM4CEPC
        "Use the existing installation of EDM4CEPC. Otherwise the internal version will be used."
-       FALSE)
+       TRUE)
 
-option(CEPCSW_USER_SYSTEM_ILCUTIL
+option(CEPCSW_USE_SYSTEM_ILCUTIL
        "Use the existing installation of ILCUTIL. Otherwise the internal version will be used."
        FALSE)
 
-option(CEPCSW_USER_SYSTEM_AIDATT
+option(CEPCSW_USE_SYSTEM_AIDATT
        "Use the existing installation of aidaTT. Otherwise the internal version will be used."
        FALSE)
 
-option(CEPCSW_USER_SYSTEM_KALTEST
+option(CEPCSW_USE_SYSTEM_KALTEST
        "Use the existing installation of KalTest. Otherwise the internal version will be used."
        FALSE)
 
-option(CEPCSW_USER_SYSTEM_DDKALTEST
+option(CEPCSW_USE_SYSTEM_DDKALTEST
        "Use the existing installation of DDKalTest. Otherwise the internal version will be used."
        FALSE)
 
-- 
GitLab