robotology / gazebo-fmi

FMI import plugins for the Gazebo Simulator.
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Installation is broken if USE_SYSTEM_FMILIBRARY is set to OFF #38

Closed traversaro closed 5 years ago

traversaro commented 5 years ago

@prashanthr05 can you check this? It seems that is due to https://github.com/svn2github/FMILibrary/blob/d49ed3ff2dabc6e17cc4a0c6f3fa6d2ae64a1683/CMakeLists.txt#L87 , probably we need to save and restore CMAKE_INSTALL_PREFIX in https://github.com/robotology/gazebo-fmi/blob/master/cmake/FetchFMILibrary.cmake , or directly initialiaze FMILIB_INSTALL_PREFIX to CMAKE_INSTALL_PREFIX.