Skip to content

Fix: CMakeLists: removed manual CUDA path and upgrade Catch2 version

Charles Villard requested to merge silvanosky/aidge_backend_cuda:edit_cmake1 into dev

Context

CUDA is not found on Archlinux which install CUDA to /opt and Conda on its dedicated environment. But standard CMake files are populated, which allows find_package to function correctly.

When AIDGE_INSTALL variable is set, manual override of the CUDA path prevents finding the library.

Catch2 does not compile under GCC 14.2, upgrading to 3.7.1 fix the problem.

Modified files

  • CMakeLists.txt
  • unit_tests/CMakeLists.txt

Detailed major modifications

find_package work well under Archlinux and Conda environment. Specific scenario would require a FindCUDA.cmake file approach to search for the correct path instead of manual overrides.

Catch2 upgraded from V3.0.1 -> V3.7.1 for GCC 14.2 compatibility.

Merge request reports

Loading