Skip to content
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

outdated Hunter causes 3000+ lines of errors, making builds difficult #978

Open
diablodale opened this issue Mar 13, 2024 · 2 comments
Open
Assignees

Comments

@diablodale
Copy link
Contributor

depthai-core uses an outdated Hunter. Cmake now issues warnings of deprecation which causes 3000+ lines of warnings for a build of depthai-core

URL "https://github.com/cpp-pm/hunter/archive/v0.23.322.tar.gz"

for example

...
cmake] CMake Deprecation Warning at C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_make_directory.cmake:4 (cmake_minimum_required):
[cmake]   Compatibility with CMake < 3.5 will be removed from a future version of
[cmake]   CMake.
[cmake] 
[cmake]   Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake]   CMake that the project does not need compatibility with older versions.
[cmake] Call Stack (most recent call first):
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_save_to_cache.cmake:8 (include)
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_download.cmake:26 (include)
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_add_package.cmake:49 (include)
[cmake]   cmake/depthaiDependencies.cmake:5 (hunter_add_package)
[cmake]   cmake/depthaiDependencies.cmake:32 (maybe_hunter_add_package)
[cmake]   CMakeLists.txt:171 (include)
[cmake] 
[cmake] 
[cmake] CMake Deprecation Warning at C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_lock_directory.cmake:4 (cmake_minimum_required):
[cmake]   Compatibility with CMake < 3.5 will be removed from a future version of
[cmake]   CMake.
[cmake] 
[cmake]   Update the VERSION argument <min> value or use a ...<max> suffix to tell
[cmake]   CMake that the project does not need compatibility with older versions.
[cmake] Call Stack (most recent call first):
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_make_directory.cmake:7 (include)
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_save_to_cache.cmake:8 (include)
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_download.cmake:26 (include)
[cmake]   C:/Users/dale/.hunter/_Base/Download/Hunter/0.23.322/cb0ea1f/Unpacked/cmake/modules/hunter_add_package.cmake:49 (include)
[cmake]   cmake/depthaiDependencies.cmake:5 (hunter_add_package)
[cmake]   cmake/depthaiDependencies.cmake:32 (maybe_hunter_add_package)
[cmake]   CMakeLists.txt:171 (include)
[cmake]
...
@moratom
Copy link
Collaborator

moratom commented Mar 13, 2024

Thanks for the report @diablodale - we'll address the warnings before the next release.

As far as I understand, the warnings are not only related to the hunter version, but also to the dependancies that hunter downloads which have the minimum cmake version set to less than 3.5 so we'll need to bump those as well to avoid the warning.

@moratom moratom self-assigned this Mar 13, 2024
@diablodale
Copy link
Contributor Author

You will probably also see warnings for cmake policy CMP0144 due to hunter dependencies with miXeD cAsE like BZip2.
Adding cmake_policy(SET CMP0144 NEW) or correcting the mixed case is needed. I also think the cmake_policy(SET already in cmakelist.txt should be moved to the top after the cmake minimum so that hunter and other toolchains are aware of the policy changes. You'll want to test this yourself because my depthai-core fork diverges.

moratom pushed a commit that referenced this issue Apr 3, 2024
* Fixing typos

* Update message_group.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants