You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I'm an engineer and trying to use MuJoCo for my hobby project. I am trying to build the sources with a minimal build time, so I would use a conan recipe for the dependencies. Most of mujoco's dependencies have their recipes already in the conan center, so I am able to install them once and if they could be integrated, I wouldn't have to rebuild them through mujoco's build ever. conanfile.py.txt
I've looked at the cmake scripts and realized that I cannot use the findorfetch macro with my externally built dependency packages without a broader patching. There are a couple of reasons I am saying this:
FindOrFetch.cmake has the same copy in 3 folders: /cmake, /simulate/cmake, /sample/cmake .
findorfetch macro "calls" are used with USE_SYSTEM_PACKAGE mainly switched OFF instead of using a CMake option to switch it on. I cannot use these packages from external sources, only when I introduce some cmake options for the calls.
the FindOrFetch macro in the USE_SYSTEM_PACKAGE case tries to find the targets and if they are not defined then find_package is called. If I wonder how that should work in the case USE_SYSTEM_PACKAGE is ON, I would first call find_package, and then if the ${PACKAGE_NAME}_FOUND is not set, only then I would download them with FetchContent...
Some dependencies come only from external sources by using find_package, for example Threads, Python3 and can be of any version. Isn't that a problem when reproducibility is one of the main goals of the project?
Some other dependencies are fetched with FetchContent and not FindOrFetch, like lodepng, MarchingCube, eigen, gtest. So they cannot be overloaded externally.
I would like to open a pull request or more with my patches
The text was updated successfully, but these errors were encountered:
Hi everyone, I'm an engineer and trying to use MuJoCo for my hobby project. I am trying to build the sources with a minimal build time, so I would use a conan recipe for the dependencies. Most of mujoco's dependencies have their recipes already in the conan center, so I am able to install them once and if they could be integrated, I wouldn't have to rebuild them through mujoco's build ever. conanfile.py.txt
I've looked at the cmake scripts and realized that I cannot use the findorfetch macro with my externally built dependency packages without a broader patching. There are a couple of reasons I am saying this:
I would like to open a pull request or more with my patches
The text was updated successfully, but these errors were encountered: