Skip to content

Commit

Permalink
Option to disable CUDA support during build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Salzmann committed Mar 24, 2024
1 parent 4097ced commit cc94109
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libl4casadi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(L4CasADi)

# Load CUDA if it is installed
find_package(CUDAToolkit)
find_package(CUDA)
#if(NOT DEFINED ENV{DISABLE_CUDA})
# # Load CUDA if it is installed
# find_package(CUDAToolkit)
# find_package(CUDA)
#endif ()

if (WIN32)
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
Expand Down

0 comments on commit cc94109

Please sign in to comment.