From dd4281c80b3418b1654f1a23a5b69452da0ab94c Mon Sep 17 00:00:00 2001 From: zhengxiaoxiaoGitee Date: Mon, 1 Apr 2024 15:49:56 +0800 Subject: [PATCH] add COMPONENT compile marco Reference:https://gitee.com/openeuler/secGear/commit/dd4281c80b3418b1654f1a23a5b69452da0ab94c Conflict:NA --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 318e1ed..3ee9c48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,10 @@ if(CODEGEN) endif() add_subdirectory(src) -add_subdirectory(component) +option(COMPONENT "default off" ON) +if(COMPONENT) + add_subdirectory(component) +endif() if(NOT IS_DIRECTORY ${LOCAL_ROOT_PATH}/bin) execute_process(COMMAND mkdir ${LOCAL_ROOT_PATH}/bin) -- 2.33.0