diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2019-07-14 23:31:40 (GMT) |
---|---|---|
committer | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2019-07-14 23:46:12 (GMT) |
commit | a9b36ea69f36cbfe198bcd5d34a19955651dfa5a (patch) | |
tree | 10f20ac11356bb2f92d52623340d1b220e457a85 | |
parent | 81389a5e8f14a09d26a8efb22fd12063168caba6 (diff) | |
download | CMake-a9b36ea69f36cbfe198bcd5d34a19955651dfa5a.zip CMake-a9b36ea69f36cbfe198bcd5d34a19955651dfa5a.tar.gz CMake-a9b36ea69f36cbfe198bcd5d34a19955651dfa5a.tar.bz2 |
FindMatlab: Fixing compilation issues on Windows
-rw-r--r-- | Modules/FindMatlab.cmake | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 03f1500..26b9419 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -1043,14 +1043,9 @@ function(matlab_add_mex) set(_link_flags "${_link_flags} /EXPORT:mexfilerequiredapiversion") endif() - if(Matlab_HAS_CPP_API) - set(_link_flags "${_link_flags} /EXPORT:mexCreateMexFunction /EXPORT:mexDestroyMexFunction /EXPORT:mexFunctionAdapter") - #TODO: Is this necessary? - endif() - set_property(TARGET ${${prefix}_NAME} APPEND PROPERTY LINK_FLAGS ${_link_flags}) - endif() # TODO: what if there's a different compiler on Windows? + endif() # No other compiler currently supported on Windows. set_target_properties(${${prefix}_NAME} PROPERTIES |