[mlpack-svn] r13717 - mlpack/trunk/src/mlpack/bindings/matlab

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Oct 15 23:46:59 EDT 2012


Author: rcurtin
Date: 2012-10-15 23:46:59 -0400 (Mon, 15 Oct 2012)
New Revision: 13717

Modified:
   mlpack/trunk/src/mlpack/bindings/matlab/CMakeLists.txt
Log:
Use MATLABMEX_FOUND not MATLAB_MEX since CMake string comparisons are as stupid
as my cat.


Modified: mlpack/trunk/src/mlpack/bindings/matlab/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/bindings/matlab/CMakeLists.txt	2012-10-16 03:46:34 UTC (rev 13716)
+++ mlpack/trunk/src/mlpack/bindings/matlab/CMakeLists.txt	2012-10-16 03:46:59 UTC (rev 13717)
@@ -4,12 +4,12 @@
 # We need the mex compiler for this to work.
 find_package(MatlabMex)
 
-if(NOT "${MATLAB_MEX}")
+if(NOT ${MATLABMEX_FOUND})
   message(STATUS
       "MATLAB mex compiler not found; MATLAB bindings will not be built.")
   message(STATUS "If MATLAB is installed, try specifying MATLAB_ROOT.")
   return()
-endif(NOT "${MATLAB_MEX}")
+endif(NOT ${MATLABMEX_FOUND})
 
 # Ignore the fact that we are setting CMAKE_SHARED_LIBRARY_CXX_FLAGS on CMake
 # 2.8.9 and newer.  Because we are requiring at least CMake 2.8.5, we only have




More information about the mlpack-svn mailing list