[mlpack-svn] r11839 - mlpack/trunk

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Mar 12 17:07:59 EDT 2012


Author: rcurtin
Date: 2012-03-12 17:07:58 -0400 (Mon, 12 Mar 2012)
New Revision: 11839

Modified:
   mlpack/trunk/CMakeLists.txt
Log:
Special handling of Boost linking properties for Visual Studio.  This was necessary for me to make things link correctly.

Modified: mlpack/trunk/CMakeLists.txt
===================================================================
--- mlpack/trunk/CMakeLists.txt	2012-03-12 20:08:47 UTC (rev 11838)
+++ mlpack/trunk/CMakeLists.txt	2012-03-12 21:07:58 UTC (rev 11839)
@@ -102,6 +102,14 @@
 
 endif(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION GREATER 45)
 
+# On Windows, automatic linking is performed, so we don't need to worry about
+# it.  Clear the list of libraries to link against and let Visual Studio handle
+# it.
+if (WIN32)
+  link_directories(${Boost_LIBRARY_DIRS})
+  set(Boost_LIBRARIES "")
+endif (WIN32)
+
 # 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