chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Default build (#74)
[nlopt.git]
/
octave
/
CMakeLists.txt
diff --git
a/octave/CMakeLists.txt
b/octave/CMakeLists.txt
index 0c8e6f3d3d87efd023d986903147a255c21542ed..ed4a6c20dfaa237b18898fc2f2a8d116becc03dc 100644
(file)
--- a/
octave/CMakeLists.txt
+++ b/
octave/CMakeLists.txt
@@
-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 ()