← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2771: LIB_EIGEN_PATH is added to CMakeLists.txt

 

------------------------------------------------------------
revno: 2771
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Mon 2011-02-28 10:05:47 +0100
message:
  LIB_EIGEN_PATH is added to CMakeLists.txt
modified:
  CMakeLists.txt


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

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2011-02-28 08:29:21 +0000
+++ CMakeLists.txt	2011-02-28 09:05:47 +0000
@@ -27,8 +27,13 @@
 
 add_definitions(-DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast)
 
+IF (NOT LIB_EIGEN_PATH)
+ SET(LIB_EIGEN_PATH "/usr/include/eigen2")
+ MESSAGE("Headers of eigen library will be included from  ${CHUNKSIZE}, if you want to override it use -DLIB_EIGEN_PATH option.")
+ENDIF (NOT LIB_EIGEN_PATH)
+
 INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
-INCLUDE_DIRECTORIES(/usr/include/eigen2)
+INCLUDE_DIRECTORIES(${LIB_EIGEN_PATH})
 INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/extra/floating_point_utilities_v3)