[arrayfire] 46/248: Another cmake fix for windows platform in unified api project
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:53:53 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 59484b0c1e79a9247261b7537ed9c5997e095f06
Author: Pradeep <pradeep at arrayfire.com>
Date: Tue Sep 8 12:34:06 2015 -0400
Another cmake fix for windows platform in unified api project
---
src/api/unified/CMakeLists.txt | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/api/unified/CMakeLists.txt b/src/api/unified/CMakeLists.txt
index ec7388a..179293c 100644
--- a/src/api/unified/CMakeLists.txt
+++ b/src/api/unified/CMakeLists.txt
@@ -23,6 +23,19 @@ FILE(GLOB common_sources
SOURCE_GROUP(common FILES ${common_sources})
+IF(NOT UNIX)
+ ADD_DEFINITIONS(-DAFDLL)
+ENDIF()
+
+# OS Definitions
+IF(UNIX)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pthread -Wno-comment")
+ELSE(${UNIX}) #Windows
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
+ SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj")
+ENDIF()
+
ADD_LIBRARY(af SHARED
${unified_headers}
${unified_sources}
--
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