mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 15:38:52 -06:00
@@ -4,3 +4,6 @@ FindMatlab-2018b
|
||||
* The :module:`FindMatlab` module gained new components ``ENGINE_LIBRARY`` and
|
||||
``DATAARRAY_LIBRARY`` to request finding the Matlab C++ Engine and DataArray
|
||||
libraries respectively.
|
||||
|
||||
* The :module:`FindMatlab` module now explicitly exports mexFunction in Visual
|
||||
Studio.
|
||||
|
||||
@@ -996,6 +996,20 @@ function(matlab_add_mex)
|
||||
endif() # documentation
|
||||
|
||||
# entry point in the mex file + taking care of visibility and symbol clashes.
|
||||
if (MSVC)
|
||||
get_target_property(
|
||||
_previous_link_flags
|
||||
${${prefix}_NAME}
|
||||
LINK_FLAGS)
|
||||
if(NOT _previous_link_flags)
|
||||
set(_previous_link_flags)
|
||||
endif()
|
||||
|
||||
set_target_properties(${${prefix}_NAME}
|
||||
PROPERTIES
|
||||
LINK_FLAGS "${_previous_link_flags} /EXPORT:mexFunction")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set_target_properties(${${prefix}_NAME}
|
||||
PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user