[shark] 11/12: fix of #24

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Dec 10 19:48:14 UTC 2015


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

ghisvail-guest pushed a commit to branch master
in repository shark.

commit 7664b7d6190761482c3a14bdbde5fe65873e43a1
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date:   Mon Nov 30 15:33:05 2015 +0100

    fix of #24
---
 CMakeLists.txt | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94e11dd..2fd47d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,14 +117,8 @@ if(NOT CMAKE_BUILD_TYPE)
 	set(CMAKE_BUILD_TYPE "Release")
 endif()
 
-string( TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE )
-if(${CMAKE_BUILD_TYPE}  MATCHES "debug")
-	#we want to be warned in debug mode
-	if(UNIX)
-#		if(CMAKE_COMPILER_IS_GNUCC)
-		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
-#		endif()
-	endif()
+if (UNIX)
+    add_compile_options("$<$<CONFIG:DEBUG>:-Wall>")
 endif()
 
 list(APPEND COMPILE_DEFINITIONS_RELEASE NDEBUG)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git



More information about the debian-science-commits mailing list