[arrayfire] 242/284: Move /bigobj definitions into main CMakeList (windows)
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit cfd60f1fa85606293126f09f72f0bdc0a9ac0824
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Jan 21 17:30:49 2016 -0500
Move /bigobj definitions into main CMakeList (windows)
/bigobj is now required for Debug builds for CPU. Since is it being used for 3
backends, it makes sense to move it into the central CMakeList
---
CMakeLists.txt | 4 ++++
src/api/unified/CMakeLists.txt | 4 ----
src/backend/opencl/CMakeLists.txt | 4 ----
3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f54a9be..2cfeb18 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -152,6 +152,10 @@ ELSE(${UNIX}) #Windows
# http://www.kitware.com/blog/home/post/434
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /Gm-")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP /Gm-")
+
+ # Builds that contain debug info require /bigobj
+ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
+ SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj")
ENDIF(MSVC)
ENDIF()
diff --git a/src/api/unified/CMakeLists.txt b/src/api/unified/CMakeLists.txt
index 21c9aeb..6ed95d0 100644
--- a/src/api/unified/CMakeLists.txt
+++ b/src/api/unified/CMakeLists.txt
@@ -32,10 +32,6 @@ 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
diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
index c9c47d0..232b652 100644
--- a/src/backend/opencl/CMakeLists.txt
+++ b/src/backend/opencl/CMakeLists.txt
@@ -197,10 +197,6 @@ CL_KERNEL_TO_H(
# 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()
IF(DEFINED BLAS_SYM_FILE)
--
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