[mlpack-svn] r10902 - mlpack/trunk
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Dec 20 10:07:26 EST 2011
Author: rcurtin
Date: 2011-12-20 10:07:26 -0500 (Tue, 20 Dec 2011)
New Revision: 10902
Modified:
mlpack/trunk/CMakeLists.txt
Log:
Boost <= 1.41 did not have a separate random package.
Modified: mlpack/trunk/CMakeLists.txt
===================================================================
--- mlpack/trunk/CMakeLists.txt 2011-12-20 10:01:20 UTC (rev 10901)
+++ mlpack/trunk/CMakeLists.txt 2011-12-20 15:07:26 UTC (rev 10902)
@@ -46,11 +46,17 @@
math_c99
program_options
unit_test_framework
- random
REQUIRED) # May require math_tr1?
-option(WITH_OPTIMIZERS "Include optimization code." OFF)
+# 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)
+ find_package(Boost COMPONENTS
+ random
+ REQUIRED)
+endif(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 41)
+
# Default to debugging mode for developers.
option(DEBUG "Compile with debugging information" ON)
option(PROFILE "Compile with profiling information" ON)
More information about the mlpack-svn
mailing list