Skip to content
Snippets Groups Projects
Commit a219640d authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

Merge branch 'fix_build' into 'dev'

fix: update the CMakeLists

See merge request !20
parents d6470959 ccb13c6a
No related branches found
No related tags found
2 merge requests!21v0.4.0,!20fix: update the CMakeLists
Pipeline #59469 canceled
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.18)
set(CXX_STANDARD 14)
file(STRINGS "${CMAKE_SOURCE_DIR}/version.txt" version) file(STRINGS "${CMAKE_SOURCE_DIR}/version.txt" version)
...@@ -19,6 +20,7 @@ option(PYBIND "python binding" OFF) ...@@ -19,6 +20,7 @@ option(PYBIND "python binding" OFF)
option(WERROR "Warning as error" OFF) option(WERROR "Warning as error" OFF)
option(TEST "Enable tests" ON) option(TEST "Enable tests" ON)
option(COVERAGE "Enable coverage" OFF) 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 # Import utils CMakeLists
...@@ -28,6 +30,13 @@ if(CMAKE_COMPILER_IS_GNUCXX AND COVERAGE) ...@@ -28,6 +30,13 @@ if(CMAKE_COMPILER_IS_GNUCXX AND COVERAGE)
Include(CodeCoverage) Include(CodeCoverage)
endif() endif()
if(NOT $ENV{AIDGE_INSTALL} STREQUAL "")
set(CMAKE_INSTALL_PREFIX $ENV{AIDGE_INSTALL})
list(APPEND CMAKE_PREFIX_PATH $ENV{AIDGE_INSTALL})
message(WARNING "Env var AIDGE_INSTALL detected : $ENV{AIDGE_INSTALL}. Set CMAKE_INSTALL_PREFIX to AIDGE_INSTALL & added to CMAKE_PREFIX_PATH"
"\n\tCMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}"
"\n\tCMAKE_PREFIX_PATH = ${CMAKE_PREFIX_PATH}")
endif()
############################################## ##############################################
# Find system dependencies # Find system dependencies
find_package(aidge_core REQUIRED) find_package(aidge_core REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment