提交 fc50fd75 编写于 作者: N Nicola Piccinelli 提交者: Julien Schueller

MEX library symbols visibility set to default

By default, the mexFunctions seems to be hidden in the newer Matlab version, this fix force the compiler to keep the symbols visible.
上级 35754245
......@@ -6,6 +6,8 @@ if (Matlab_FOUND AND Matlab_MX_LIBRARY)
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})
set_target_properties(nlopt_optimize-mex PROPERTIES COMPILE_FLAGS "-fvisibility=default")
if (NLOPT_CXX)
set_target_properties (nlopt_optimize-mex PROPERTIES LINKER_LANGUAGE CXX)
endif ()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册