[mlpack-svn] r10769 - mlpack/trunk
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Dec 14 07:16:28 EST 2011
Author: rcurtin
Date: 2011-12-14 07:16:27 -0500 (Wed, 14 Dec 2011)
New Revision: 10769
Modified:
mlpack/trunk/CMakeLists.txt
Log:
Allow compilation with -DARMA_EXTRA_DEBUG.
Modified: mlpack/trunk/CMakeLists.txt
===================================================================
--- mlpack/trunk/CMakeLists.txt 2011-12-14 12:13:02 UTC (rev 10768)
+++ mlpack/trunk/CMakeLists.txt 2011-12-14 12:16:27 UTC (rev 10769)
@@ -53,6 +53,7 @@
# Default to debugging mode for developers.
option(DEBUG "Compile with debugging information" ON)
option(PROFILE "Compile with profiling information" ON)
+option(ARMA_EXTRA_DEBUG "Compile with extra Armadillo debugging symbols." OFF)
# This is as of yet unused.
#option(PGO "Use profile-guided optimization if not a debug build" ON)
@@ -74,6 +75,10 @@
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
endif(PROFILE)
+if(ARMA_EXTRA_DEBUG)
+ add_definitions(-DARMA_EXTRA_DEBUG)
+endif(ARMA_EXTRA_DEBUG)
+
# For Boost testing framework (will have no effect on non-testing executables).
# This specifies to Boost that we are dynamically linking to the Boost test
# library.
More information about the mlpack-svn
mailing list