1 Star 0 Fork 12

Leon/Tensorpipe

forked from Ascend/Tensorpipe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Leon 提交于 2024-01-30 14:13 . redefine FILE
# Copyright (c) 2023 Huawei Technologies Co., Ltd
# Copyright (c) 2020 Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(tensorpipe LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(notdir $(abspath $<))\"'")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-builtin-macro-redefined -D__FILE__='\"$(subst $(realpath ${CMAKE_SOURCE_DIR})/,,$(abspath $<))\"'")
set(CMAKE_C_FLAGS "-fstack-protector-all -Wl,-z,relro,-z,now,-z,noexecstack -fPIE -pie ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-fstack-protector-all -Wl,-z,relro,-z,now,-z,noexecstack -fPIE -pie ${CMAKE_CXX_FLAGS}")
set(CXXFLAGS "-fstack-protector-all -Wl,-z,relro,-z,now,-z,noexecstack -fPIE -pie ${CXXFLAGS}")
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
# Expose build options.
include(Options)
# Define sanitizer option, if specified.
include(Sanitize)
# Misc checks to cope with various compiler modes.
include(MiscCheck)
add_subdirectory(tensorpipe)
install(EXPORT TensorpipeTargets
DESTINATION share/cmake/Tensorpipe
FILE TensorpipeTargets.cmake)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/carpediemml/Tensorpipe.git
git@gitee.com:carpediemml/Tensorpipe.git
carpediemml
Tensorpipe
Tensorpipe
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385