diff --git a/csrc/backend_ops/tensorrt/CMakeLists.txt b/csrc/backend_ops/tensorrt/CMakeLists.txt index 796a600eb..d4e9c4175 100644 --- a/csrc/backend_ops/tensorrt/CMakeLists.txt +++ b/csrc/backend_ops/tensorrt/CMakeLists.txt @@ -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 diff --git a/csrc/device/cuda/CMakeLists.txt b/csrc/device/cuda/CMakeLists.txt index 1ac67bb8b..04f392d85 100644 --- a/csrc/device/cuda/CMakeLists.txt +++ b/csrc/device/cuda/CMakeLists.txt @@ -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 diff --git a/csrc/net/trt/CMakeLists.txt b/csrc/net/trt/CMakeLists.txt index 94f08070b..8c71bd46c 100644 --- a/csrc/net/trt/CMakeLists.txt +++ b/csrc/net/trt/CMakeLists.txt @@ -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) diff --git a/csrc/preprocess/cuda/CMakeLists.txt b/csrc/preprocess/cuda/CMakeLists.txt index be1c7b33d..2ccf77638 100644 --- a/csrc/preprocess/cuda/CMakeLists.txt +++ b/csrc/preprocess/cuda/CMakeLists.txt @@ -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)