-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FetchContent compatibility? #13043
Comments
Hi @panpawel88 Installing RealSense with FetchContent is also discussed at the link below. https://stackoverflow.com/questions/56593161/cmake-fetchcontent-does-not-copy-libraries In their solution they fetch realsense2 instead of librealsense. |
Hi @panpawel88 Do you require further assistance with this case, please? Thanks! |
Hello @MartyG-RealSense , I couldn't get it working by FetchContent, but I've added realsense dependency by using vcpkg. My issue is solved. Thanks |
You are very welcome. Thanks very much for the update. As you have achieved a solution, I will close this case. Thanks again! |
I actually think the issue is because the opengl configuration in librealsense is using |
Thanks very much @mprat for contributing a PR! |
Hello,
I wanted to add Realsense library as a dependency to my project. Realsense library is added by
FetchContent
cmake feature. However cmake generation fails on my side.Here is my simple
CMakeLists.txt
file:Error log:
Correct path for
opengl_config.cmake
is/home/pawel/CLionProjects/realsense-test/cmake-build-debug/_deps/librealsense-src/CMake/opengl_config.cmake
.Is Realsense library compatible with
FetchContent
? In #12150 somebody wanted to clone withFetchContent
, so I would expect that it should be working.The text was updated successfully, but these errors were encountered: