[arrayfire] 02/61: Fixes for examples when used with installer

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Dec 8 11:54:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit ca0c7cc10ba044887a44b6b900da03311fb1d453
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Nov 13 17:48:49 2015 -0500

    Fixes for examples when used with installer
---
 examples/CMakeLists.txt    | 6 +++++-
 examples/unified/basic.cpp | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index a795916..e20db4e 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -84,7 +84,11 @@ endif()
 # Next we build each example using every backend.
 if(${ArrayFire_Unified_FOUND})  # variable defined by FIND(ArrayFire ...)
   MESSAGE(STATUS "EXAMPLES: UNIFIED backend is ON.")
-  BUILD_ALL("${FILES}" unified ${ArrayFire_Unified_LIBRARIES} "")
+  IF(WIN32)
+    BUILD_ALL("${FILES}" unified ${ArrayFire_Unified_LIBRARIES} "")
+  ELSE()
+    BUILD_ALL("${FILES}" unified ${ArrayFire_Unified_LIBRARIES} "dl")
+  ENDIF()
 elseif(TARGET af)        # variable defined by the ArrayFire build tree
   MESSAGE(STATUS "EXAMPLES: UNIFIED backend is ON.")
   IF(WIN32)
diff --git a/examples/unified/basic.cpp b/examples/unified/basic.cpp
index 31d1eac..791466a 100644
--- a/examples/unified/basic.cpp
+++ b/examples/unified/basic.cpp
@@ -8,6 +8,7 @@
  ********************************************************/
 
 #include <arrayfire.h>
+#include <cstdio>
 #include <vector>
 #include <algorithm>
 

-- 
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