[arrayfire] 19/84: Add MSVC flag around example build flags
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Jan 4 23:22:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository arrayfire.
commit cda0923579c9700829ce6cc780893b34f0e3fed5
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Dec 10 22:37:27 2015 -0500
Add MSVC flag around example build flags
---
examples/CMakeLists.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 5377252..4710d1b 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -33,8 +33,10 @@ ENDIF()
IF(WIN32)
# Deprecated Errors are Warning 4996 on VS2013.
# https://msdn.microsoft.com/en-us/library/ttcz0bys.aspx
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /we4996")
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /we4996")
+ IF(MSVC)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /we4996")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /we4996")
+ ENDIF(MSVC)
ELSE(WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=deprecated-declarations")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=deprecated-declarations")
--
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