Skip to content

PERF: when iMSTK used by external applications, generate useful cmake error messages when necessary libraries are not found

Andinet enquobahrie requested to merge (removed):fix-g3log-cmake into master

When building external applications that use iMSTK, the following message is generated during cmake configuraiton

===================================== CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find g3log (missing: g3log_LIBRARIES) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) C:/s/iMSTK-orthognathicSurgSim/CMake/Findg3log.cmake:36 (find_package_handle_standard_args) C:/b/iMSTK-ortho-r/Innerbuild/iMSTKConfig.cmake:21 (find_package) CMakeLists.txt:6 (find_package)

The issue is not with g3log but instead a library missing that is used within g3log (DbgHelpLibrary..)

same with VRPN...

it is hard to identify the issue unless a useful cmake error message is generated. This MR adds useful error messages

Merge request reports