Eclips编译警告,每次都有这个warning,看起来不顺眼,
不知道哪里有问题,编译结果是没问题的。
报错的中间信息如下,红色已标注:
............................
-- Found PythonInterp: C:/Users/dell/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe (found version "3.8.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
CMake Warning (dev) at D:/esp-idf/components/mbedtls/CMakeLists.txt:114 (target_sources):
Policy CMP0076 is not set: target_sources() command converts relative paths to absolute.
Run "cmake --help-policy CMP0076" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
A private source from a directory other than that of target "mbedcrypto" has a relative path.
This warning is for project developers. Use -Wno-dev to suppress it.
-- App "gatt_server_demos" version: 1
................................
然后按照说的,去执行了 "cmake --help-policy CMP0076" 命令,显示的结果如下,看不懂,求大佬指导一下:
D:esp-idf>cmake --help-policy CMP0076
CMP0076
-------
The ``target_sources()`` command converts relative paths to absolute.
In CMake 3.13 and above, the ``target_sources()`` command now converts
relative source file paths to absolute paths in the following cases:
* Source files are added to the target's ``INTERFACE_SOURCES``
property.
* The target's ``SOURCE_DIR`` property differs from
``CMAKE_CURRENT_SOURCE_DIR``.
A path that begins with a generator expression is always left unmodified.
This policy provides compatibility with projects that have not been updated
to expect this behavior. The ``OLD`` behavior for this policy is to leave
all relative source file paths unmodified. The ``NEW`` behavior of this
policy is to convert relative paths to absolute according to above rules.
This policy was introduced in CMake version 3.13. CMake version
3.16.4 warns when the policy is not set and uses ``OLD`` behavior.
Use the ``cmake_policy()`` command to set it to ``OLD`` or ``NEW``
explicitly.
.. note::
The ``OLD`` behavior of a policy is
``deprecated by definition``
and may be removed in a future version of CMake.
D:esp-idf>