[arrayfire] 247/408: Added BUILD_NONFREE option to CMake
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit 1ee6b709fc625e984777c4e0a075fb96a8a75b8c
Author: Peter Andreas Entschev <peter at arrayfire.com>
Date: Thu Aug 13 10:32:23 2015 -0400
Added BUILD_NONFREE option to CMake
---
CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 99d0876..0138cd7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,8 @@ OPTION(BUILD_GRAPHICS "Build ArrayFire with Forge Graphics" ON)
OPTION(BUILD_DOCS "Create ArrayFire Documentation" OFF)
OPTION(WITH_COVERAGE "Added code coverage flags" OFF)
+OPTION(BUILD_NONFREE "Build ArrayFire nonfree algorithms" ON)
+
# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
@@ -81,6 +83,10 @@ IF(BUILD_GRAPHICS)
ENDIF(BUILD_GRAPHICS)
+IF(BUILD_NONFREE)
+ ADD_DEFINITIONS(-DAF_NONFREE)
+ENDIF(BUILD_NONFREE)
+
INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/src/backend"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list