Skip to content
Snippets Groups Projects
Commit b704d58f authored by Silvio Traversaro's avatar Silvio Traversaro Committed by Brad King
Browse files

FindMatlab: in matlab_add_mex use the correct version file

Before this modification, the c_mexapi_version.c file was added to
all mex libraries. However, if the C language was not enabled
in the CMake project configuration, the c_mexapi_version.c file
was ignored, creating linking errors in Windows and macOS.
This commit ensures that in the case only the CXX languages is enabled,
the correct version is passed.

Fixes: #19382
parent 512ab500
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment