Revision: 8573
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8573&view=rev
Author:   hsujohnhsu
Date:     2010-03-09 21:28:59 +0000 (Tue, 09 Mar 2010)

Log Message:
-----------
fix for non-standard bullet installs

Modified Paths:
--------------
    code/gazebo/trunk/cmake/SearchForStuff.cmake

Modified: code/gazebo/trunk/cmake/SearchForStuff.cmake
===================================================================
--- code/gazebo/trunk/cmake/SearchForStuff.cmake        2010-03-09 21:22:33 UTC 
(rev 8572)
+++ code/gazebo/trunk/cmake/SearchForStuff.cmake        2010-03-09 21:28:59 UTC 
(rev 8573)
@@ -464,10 +464,16 @@
 int main() { btRigidBody body(0,NULL, NULL, btVector3(0,0,0)); return 0; }")
 
   set (CMAKE_REQUIRED_DEFINITIONS "-DBT_USE_DOUBLE_PRECISION")
+  STRING (REPLACE " " ";" bullet_include_dirs_split "${bullet_include_dirs}") 
#for cmake 2.4-7
+  STRING (REPLACE " " ";" bullet_library_dirs_split "${bullet_library_dirs}") 
#for cmake 2.4-7
+  set( CMAKE_REQUIRED_INCLUDES ${bullet_include_dirs_split} )
   set (CMAKE_REQUIRED_LIBRARIES BulletDynamics BulletCollision LinearMath)
+  set( CMAKE_REQUIRED_FLAGS  ${bullet_lflags} )
   CHECK_CXX_SOURCE_COMPILES ("${check_bullet_code}" BULLET_DOUBLE_PRECISION)
   set (CMAKE_REQUIRED_LIBRARIES)
   set (CMAKE_REQUIRED_DEFINITIONS)
+  set( CMAKE_REQUIRED_INCLUDES)
+  set( CMAKE_REQUIRED_FLAGS)
 
   if (NOT BULLET_DOUBLE_PRECISION)
     BUILD_ERROR("bullet was not compiled to use double precision.")


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to