[mlpack-svn] r10903 - mlpack/trunk

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Dec 20 10:33:51 EST 2011


Author: rcurtin
Date: 2011-12-20 10:33:51 -0500 (Tue, 20 Dec 2011)
New Revision: 10903

Modified:
   mlpack/trunk/CMakeLists.txt
Log:
Search correctly for Boost.Random.  It did not exist separately until 1.46.


Modified: mlpack/trunk/CMakeLists.txt
===================================================================
--- mlpack/trunk/CMakeLists.txt	2011-12-20 15:07:26 UTC (rev 10902)
+++ mlpack/trunk/CMakeLists.txt	2011-12-20 15:33:51 UTC (rev 10903)
@@ -48,13 +48,13 @@
   unit_test_framework
   REQUIRED) # May require math_tr1?
 
-# We need to include Boost random, but only if newer than 1.41 (as of 1.42 it
-# became a separate package).
-if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 41)
+# We need to include Boost random, but only if newer than 1.45 (as of 1.46 it
+# became a separate package with its own linkable library object).
+if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 45)
   find_package(Boost COMPONENTS
   random
   REQUIRED)
-endif(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 41)
+endif(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 45)
 
 
 # Default to debugging mode for developers.




More information about the mlpack-svn mailing list