yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11738
[Branch ~yade-pkg/yade/git-trunk] Rev 3552: Reintroduce floating_point_utilities_v3.
------------------------------------------------------------
revno: 3552
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Wed 2014-12-03 22:07:09 +0100
message:
Reintroduce floating_point_utilities_v3.
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-11-22 08:53:06 +0000
+++ CMakeLists.txt 2014-12-03 21:07:09 +0000
@@ -348,6 +348,16 @@
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
#===========================================================
+# floating_point_utilities_v3 are already in Boost included
+# Use embedded copy only if Boost older than 1.47.0
+
+IF((Boost_MINOR_VERSION LESS 47) AND (Boost_MAJOR_VERSION EQUAL 1))
+ MESSAGE(STATUS "Boost version is less than 1.47, using embedded version of floating_point_utilities_v3")
+ MESSAGE(STATUS "Consider updating boost or system, as this embedded library will be removed soon")
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/extra/floating_point_utilities_v3)
+ENDIF((Boost_MINOR_VERSION LESS 47) AND (Boost_MAJOR_VERSION EQUAL 1))
+
+#===========================================================
IF(ENABLE_LBMFLOW)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLBM_ENGINE")
SET(CONFIGURED_FEATS "${CONFIGURED_FEATS} LBMFLOW")