chiark / gitweb /
Default build (#74)
[nlopt.git] / octave / CMakeLists.txt
index 0c8e6f3d3d87efd023d986903147a255c21542ed..ed4a6c20dfaa237b18898fc2f2a8d116becc03dc 100644 (file)
@@ -27,5 +27,7 @@ if (OCTAVE_FOUND)
 endif ()
 
 if (Matlab_FOUND)
+  cmake_minimum_required (VERSION 3.3) # for the matlab_add_mex macro
+
   matlab_add_mex (NAME nlopt_optimize-mex SRC nlopt_optimize-mex.c OUTPUT_NAME nlopt_optimize LINK_TO ${nlopt_lib})
 endif ()