← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 4072: Remove -std=c++0x definition for pygts.

 

------------------------------------------------------------
revno: 4072
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Fri 2014-07-11 20:29:03 +0200
message:
  Remove -std=c++0x definition for pygts.
modified:
  py/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 'py/CMakeLists.txt'
--- py/CMakeLists.txt	2013-10-15 16:14:46 +0000
+++ py/CMakeLists.txt	2014-07-11 18:29:03 +0000
@@ -5,6 +5,7 @@
     MESSAGE(STATUS "Use system gts version")
   ELSE (PY_gts)
     MESSAGE(STATUS "Use embedded version of gts. Please, consider installing the corresponding package")
+    REMOVE_DEFINITIONS("-std=c++0x")
     FILE(GLOB SRC_PYGTS "${CMAKE_CURRENT_SOURCE_DIR}/3rd-party/pygts-0.3.1/*.c")
     ADD_LIBRARY(_gts SHARED ${SRC_PYGTS})
     SET_TARGET_PROPERTIES(_gts PROPERTIES PREFIX "")
@@ -12,6 +13,7 @@
     INSTALL(FILES 3rd-party/pygts-0.3.1/__init__.py DESTINATION ${YADE_LIB_PATH}/py/gts)
     INSTALL(FILES 3rd-party/pygts-0.3.1/pygts.py DESTINATION ${YADE_LIB_PATH}/py/gts)
     INSTALL(TARGETS _gts DESTINATION ${YADE_LIB_PATH}/py/gts)
+    ADD_DEFINITIONS("-std=c++0x")
   ENDIF (PY_gts)
 ENDIF(ENABLE_GTS)
 #==================pygts=========================================