← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 1977: 1. Eigen check library fix. Thanks Bruno

 

------------------------------------------------------------
revno: 1977
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-01-20 17:08:01 +0100
message:
  1. Eigen check library fix. Thanks Bruno
modified:
  SConstruct


--
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 'SConstruct'
--- SConstruct	2010-01-20 14:11:06 +0000
+++ SConstruct	2010-01-20 16:08:01 +0000
@@ -374,8 +374,7 @@
 		env.Append(CXXFLAGS='-frounding-math') # required by cgal, otherwise we get assertion failure at startup
 		if not ok: featureNotOK('cgal')
 	if 'eigen' in env['features']:
-		ok=conf.CheckLibWithHeader(['Eigen'],'Eigen/Core','c++','Eigen::Matrix4f::Identity()',autoadd=1)
-		env.Append(LIBS='Eigen')
+		ok=conf.CheckCXXHeader('Eigen/Core')
 		if not ok: featureNotOK('eigen',note="You might have to add eigen header directory (e.g. /usr/include/eigen2) to CPPPATH.")
 
 	if env['useMiniWm3']: env.Append(LIBS='miniWm3',CPPDEFINES=['MINIWM3'])