autowarefo​undation/a​utoware 'CMake Warning' issue

6 ビュー (過去 30 日間)
Harvey
Harvey 2022 年 8 月 18 日
回答済み: Leepakshi 2025 年 5 月 2 日
autowarefoundation/autoware 'CMake Warning' issue
--- stderr: polar_grid
CMake Warning (dev) at CMakeLists.txt:7 (find_package):
Ignoring EXACT since no version is requested.
This warning is for project developers. Use -Wno-dev to suppress it.
The above warning appears multiple times, how to solve this issue? Thank you so much for your help!

回答 (1 件)

Leepakshi
Leepakshi 2025 年 5 月 2 日
Hi Harvey,
The warning appears because the find_package command in the CMakeLists.txt file, uses the EXACT keyword without specifying a version number.
To fix this, either remove EXACT if you don’t need a specific version, or add the required version number. For example, use find_package(some_package REQUIRED) or, if you need a certain version, find_package(some_package 1.2.3 EXACT REQUIRED). To supress the warning, you can add -Wno-dev to your CMake command line.
Hope this helps!

カテゴリ

Help Center および File ExchangeGenerating Code についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by