Open
Description
After following the guide and successfully building and installing OpenSim on my Ubuntu 18.04 machine via the super build approach, there was an error when trying to find the package in CMakeLists.txt
:
By not providing "FindOpenSim.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenSim", but
CMake did not find one.
Could not find a package configuration file provided by "OpenSim" with any
of the following names:
OpenSimConfig.cmake
opensim-config.cmake
Add the installation prefix of "OpenSim" to CMAKE_PREFIX_PATH or set
"OpenSim_DIR" to a directory containing one of the above files. If
"OpenSim" provides a separate development package or SDK, be sure it has
been installed.
The issues can be resolved by adding the following (with ~/opensim/
being the install directory):
set(OpenSim_DIR "~/opensim/lib/cmake/OpenSim")
find_package(OpenSim REQUIRED)
It would be nice if the guide mentioned a proper way of handling this or added a FindOpenSim.cmake
file to be run with some environment variable.