mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
FindMatlab: Fixing compilation issues on Windows
This commit is contained in:
@@ -1043,14 +1043,9 @@ function(matlab_add_mex)
|
|||||||
set(_link_flags "${_link_flags} /EXPORT:mexfilerequiredapiversion")
|
set(_link_flags "${_link_flags} /EXPORT:mexfilerequiredapiversion")
|
||||||
endif()
|
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})
|
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}
|
set_target_properties(${${prefix}_NAME}
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
|||||||
Reference in New Issue
Block a user