mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
suppress CMAKE_CUDA_ARCHITECTURES warning (#278)
* suppress CMAKE_CUDA_ARCHITECTURES warning * refactor
This commit is contained in:
parent
116d2316fc
commit
fee55f3df1
@ -4,7 +4,6 @@ include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
|
||||
project(mmdeploy_tensorrt_ops CUDA CXX)
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/tensorrt.cmake NO_POLICY_SCOPE)
|
||||
|
||||
# cub
|
||||
|
@ -4,11 +4,6 @@ cmake_minimum_required(VERSION 3.14)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
|
||||
project(mmdeploy_cuda_device CUDA CXX)
|
||||
|
||||
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0")
|
||||
# suppress 'CMAKE_CUDA_ARCHITECTURES' warning
|
||||
cmake_policy(SET CMP0104 OLD)
|
||||
endif ()
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
|
||||
|
||||
set(SRCS
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
|
||||
project(mmdeploy_trt_net)
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
|
||||
|
@ -1,12 +1,8 @@
|
||||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cuda.cmake NO_POLICY_SCOPE)
|
||||
project(mmdeploy_cuda_transform_impl CUDA CXX)
|
||||
|
||||
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18.0")
|
||||
# suppress 'CMAKE_CUDA_ARCHITECTURES' warning
|
||||
cmake_policy(SET CMP0104 OLD)
|
||||
endif ()
|
||||
|
||||
find_package(pplcv REQUIRED)
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/MMDeploy.cmake)
|
||||
|
Loading…
x
Reference in New Issue
Block a user