# -----------------------------------------------------------------------------------------------------------
# Copyright (c) 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
# CANN Open Software License Agreement Version 2.0 (the "License").
# Please refer to the License for details. You may not use this file except in compliance with the License.
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
# See LICENSE in the root of the software repository for the full text of the License.
# -----------------------------------------------------------------------------------------------------------
if (DEFINED ASCEND_INSTALLED_PATH)
include(FetchContent)
FetchContent_Declare(
secure_c
URL https://gitee.com/openeuler/libboundscheck/repository/archive/v1.1.16.tar.gz
)
FetchContent_GetProperties(secure_c)
if (NOT secure_c_POPULATED)
FetchContent_Populate(secure_c)
include_directories(${secure_c_SOURCE_DIR}/include)
endif ()
else ()
include_directories(${ASCEND_CI_BUILD_DIR}/libc_sec/include/)
include_directories(${ASCEND_CI_BUILD_DIR}/abl/libc_sec/include/)
endif ()