← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 4066: Enable C++11 by default.

 

------------------------------------------------------------
revno: 4066
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-07-10 23:26:50 +0200
message:
  Enable C++11 by default.
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	2014-07-10 21:23:23 +0000
+++ CMakeLists.txt	2014-07-10 21:26:50 +0000
@@ -63,13 +63,7 @@
 
 #===========================================================
 
-ADD_DEFINITIONS(" -DYADE_PTR_CAST=boost::static_pointer_cast -DYADE_CAST=static_cast -DYADE_PTR_DYN_CAST=boost::dynamic_pointer_cast ")
-IF (CXX11)
-  SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -std=c++0x")
-  ADD_DEFINITIONS(" -DCXX11 -DTYPEOF=decltype")
-ELSE (CXX11)
-  ADD_DEFINITIONS(" -DTYPEOF=typeof")
-ENDIF (CXX11)
+ADD_DEFINITIONS(" -DYADE_PTR_CAST=boost::static_pointer_cast -DYADE_CAST=static_cast -DYADE_PTR_DYN_CAST=boost::dynamic_pointer_cast -DTYPEOF=decltype -std=c++0x")
 
 #===========================================================