Skip to content

CMakeLists.txt: Use CUDAToolkit instead of CUDA (deprecated) in find_…#140

Open
alimon wants to merge 2 commits intokoide3:masterfrom
glydways:glydways
Open

CMakeLists.txt: Use CUDAToolkit instead of CUDA (deprecated) in find_…#140
alimon wants to merge 2 commits intokoide3:masterfrom
glydways:glydways

Conversation

@alimon
Copy link

@alimon alimon commented Dec 15, 2023

…package

Fixes,

CMake Warning (dev) at third_party/fast_gicp/CMakeLists.txt:36 (find_package):
  Policy CMP0146 is not set: The FindCUDA module is removed.  Run "cmake
  --help-policy CMP0146" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at .toolchain/c97040d85c983530acbe2e02c2327d0db40f6e7acb4dd8cbc280076c92c33ccf/sysroot/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_INCLUDE_DIRS
  CUDA_CUDART_LIBRARY) (found version "11.8")
Call Stack (most recent call first):
  .toolchain/c97040d85c983530acbe2e02c2327d0db40f6e7acb4dd8cbc280076c92c33ccf/sysroot/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  .toolchain/c97040d85c983530acbe2e02c2327d0db40f6e7acb4dd8cbc280076c92c33ccf/sysroot/share/cmake-3.27/Modules/FindCUDA.cmake:1291 (find_package_handle_standard_args)
  third_party/fast_gicp/CMakeLists.txt:36 (find_package)

alimon and others added 2 commits December 15, 2023 13:19
…package

Fixes,

```
CMake Warning (dev) at third_party/fast_gicp/CMakeLists.txt:36 (find_package):
  Policy CMP0146 is not set: The FindCUDA module is removed.  Run "cmake
  --help-policy CMP0146" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at .toolchain/c97040d85c983530acbe2e02c2327d0db40f6e7acb4dd8cbc280076c92c33ccf/sysroot/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_INCLUDE_DIRS
  CUDA_CUDART_LIBRARY) (found version "11.8")
Call Stack (most recent call first):
  .toolchain/c97040d85c983530acbe2e02c2327d0db40f6e7acb4dd8cbc280076c92c33ccf/sysroot/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  .toolchain/c97040d85c983530acbe2e02c2327d0db40f6e7acb4dd8cbc280076c92c33ccf/sysroot/share/cmake-3.27/Modules/FindCUDA.cmake:1291 (find_package_handle_standard_args)
  third_party/fast_gicp/CMakeLists.txt:36 (find_package)
```

Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants