summaryrefslogtreecommitdiff
path: root/Modules/FindMatlab.cmake
diff options
context:
space:
mode:
authorRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2019-07-15 01:31:40 +0200
committerRaffi Enficiaud <raffi.enficiaud@mines-paris.org>2019-07-15 01:46:12 +0200
commita9b36ea69f36cbfe198bcd5d34a19955651dfa5a (patch)
tree10f20ac11356bb2f92d52623340d1b220e457a85 /Modules/FindMatlab.cmake
parent81389a5e8f14a09d26a8efb22fd12063168caba6 (diff)
downloadcmake-a9b36ea69f36cbfe198bcd5d34a19955651dfa5a.tar.gz
FindMatlab: Fixing compilation issues on Windows
Diffstat (limited to 'Modules/FindMatlab.cmake')
-rw-r--r--Modules/FindMatlab.cmake7
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 03f1500566..26b94190cc 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