Skip to content
Snippets Groups Projects
Commit cdc9e2dc authored by Martin Beseda's avatar Martin Beseda
Browse files

FIX: Trying to compile only CBLAS

parent 7453a349
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.12)
project(lib4neuro)
message("Using CMake ${CMAKE_VERSION}")
......@@ -29,6 +30,7 @@ else()
add_compile_definitions(BOOST_TEST_DYN_LINK)
endif()
add_compile_definitions(ARMA_DONT_USE_WRAPPER)
add_compile_definitions(CBLAS_ONLY=1)
#------------#
# Build type #
......@@ -39,9 +41,7 @@ if (NOT CMAKE_BUILD_TYPE)
"Choose the type of build, options are: None Debug Release."
FORCE)
elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
#TODO use add_compile_definitions afer new version of CMake will be available on CI
# add_compile_definitions("L4N_DEBUG")
add_compile_options("-DL4N_DEBUG")
add_compile_definitions("L4N_DEBUG")
endif (NOT CMAKE_BUILD_TYPE)
#------------------------#
......@@ -181,6 +181,5 @@ endif()
#---------------------------------------------------#
# Add subdirectory with source codes to be compiled #
#---------------------------------------------------#
message("${SRC_DIR} ${PROJECT_BINARY_DIR}")
add_subdirectory(${SRC_DIR} ${PROJECT_BINARY_DIR})
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