← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3823: Use explicitly -DNDEBUG instead of CMAKE_CXX_FLAGS_RELEASE

 

------------------------------------------------------------
revno: 3823
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2016-03-24 23:08:26 +0100
message:
  Use explicitly -DNDEBUG instead of CMAKE_CXX_FLAGS_RELEASE
  
  CMAKE_CXX_FLAGS_RELEASE exposes nowadays -DNDEBUG and -O3.
  It looks like -O3 produces some problems expecially with
  cgal.
modified:
  CMakeLists.txt


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2016-03-24 22:08:26 +0000
+++ CMakeLists.txt	2016-03-24 22:08:26 +0000
@@ -79,7 +79,7 @@
   SET(CMAKE_BUILD_TYPE Debug)
   ADD_DEFINITIONS("-DYADE_DEBUG -g")
 ELSE (DEBUG)
-  ADD_DEFINITIONS(${CMAKE_CXX_FLAGS_RELEASE})
+  ADD_DEFINITIONS("-DNDEBUG")
 ENDIF (DEBUG)
 
 #===========================================================