title: CMake couldn't find MatLab libraries, even though MatLab is detected
body: <p>I have been trying to build <a href="https://github.com/robotology/blockfactory" rel="nofollow noreferrer">BlockFactory</a> and I keep getting following error when trying to build it.</p>
  <pre class="lang-sh prettyprint-override"><code>PS F:\simconnect-monitor\blockfactory&gt; cmake -S . -B build
  -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19044. 
  -- The CXX compiler identification is MSVC 19.16.27045.0 
  -- Detecting CXX compiler ABI info 
  -- Detecting CXX compiler ABI info - done 
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped 
  -- Detecting CXX compile features 
  -- Detecting CXX compile features - done 
  -- Could NOT find Matlab (missing: Matlab_MEX_LIBRARY Matlab_MX_LIBRARY ENG_LIBRARY) (found version &quot;9.10&quot;) 
  CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
      Could NOT find Matlab (missing: Matlab_MEX_LIBRARY Matlab_MX_LIBRARY   MX_LIBRARY) (found version &quot;9.10&quot;) 
  
  Call Stack (most recent call first):
     C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
     cmake/FindMatlab.cmake:1873 (find_package_handle_standard_args)
     deps/mxpp/CMakeLists.txt:45 (find_package)
  </code></pre>
  <p>As you can see, MatLab was detected but the correct library cannot be found. I have tried with CMake 3.18.14 and 3.22.3 with no difference. I am really loss right now honestly. I have posted an issue in the <a href="https://github.com/robotology/blockfactory/issues/68" rel="nofollow noreferrer">BlockFactory GitHub</a> but so far, it is still unresolved.</p>