Skip to content

Commit

Permalink
Always call MatlabConfigure
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Apr 25, 2024
1 parent 4d85db0 commit d2be257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmexclass/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ macro(MatlabConfigure)
find_package(Matlab REQUIRED)
message(STATUS "Matlab_VERSION_STRING = ${Matlab_VERSION_STRING}")

if (${Matlab_VERSION_STRING} STREQUAL "unknown")
#if (${Matlab_VERSION_STRING} STREQUAL "unknown")
# Derive the MATLAB Release Version Number from VersionInfo.xml.
# The matlab_add_mex function needs to know the MATLAB Release Version Number
# (i.e. Matlab_VERSION_STRING) in order to properly compile MEX functions.
Expand All @@ -116,7 +116,7 @@ macro(MatlabConfigure)
string(REGEX MATCH "^[0-9]+[.][0-9]+" MATLAB_RELEASE_VERSION ${LONG_VERSION_STRING})
message(STATUS "MATLAB_RELEASE_VERSION = ${MATLAB_RELEASE_VERSION}")
MatlabConfigureVariables()
endif()
#endif()
MatlabPrintVariables()
endmacro()

Expand Down

0 comments on commit d2be257

Please sign in to comment.