Skip to content
Snippets Groups Projects

fix: update the CMakeLists

Merged Houssem ROUIS requested to merge fix_build into dev
1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
+ 8
6
@@ -8,12 +8,6 @@ project(aidge_learning
DESCRIPTION "Functions and alogrithms to train models in the AIDGE framework"
LANGUAGES CXX)
# Enable CUDA if backend_cuda is found
find_package(aidge_backend_cuda)
if(aidge_backend_cuda_FOUND)
enable_language(CUDA)
endif()
message(STATUS "Project name: ${CMAKE_PROJECT_NAME}")
message(STATUS "Project version: ${version}")
@@ -26,6 +20,7 @@ option(PYBIND "python binding" OFF)
option(WERROR "Warning as error" OFF)
option(TEST "Enable tests" ON)
option(COVERAGE "Enable coverage" OFF)
option(ENABLE_ASAN "Enable ASan (AddressSanitizer) for runtime analysis of memory use (over/underflow, memory leak, ...)" OFF)
##############################################
# Import utils CMakeLists
@@ -37,6 +32,7 @@ endif()
##############################################
# FIND Dependencies
if(NOT $ENV{AIDGE_INSTALL} STREQUAL "")
set(CMAKE_INSTALL_PREFIX $ENV{AIDGE_INSTALL})
list(APPEND CMAKE_PREFIX_PATH $ENV{AIDGE_INSTALL})
@@ -46,6 +42,12 @@ if(NOT $ENV{AIDGE_INSTALL} STREQUAL "")
endif()
find_package(aidge_core REQUIRED)
# Enable CUDA if backend_cuda is found
find_package(aidge_backend_cuda)
if(aidge_backend_cuda_FOUND)
enable_language(CUDA)
endif()
##############################################
# Create target and set properties
Loading