Closed
Description
Issue description
Hi,
I'm using the latest pybind11 master commit (as of today) - as a submodule, not from vcpkg. I'm including that pybind11 commit in one of my projects. That project happens to have a few dependencies, and I'm using vcpkg for those. When clicking "Generate" in the CMake GUI, I get the following warning:
pybind11 v2.6.0 dev
Configuring done
CMake Warning (dev) at C:/Users/User/vcpkg/scripts/buildsystems/vcpkg.cmake:362 (_add_library):
Policy CMP0069 is not set: INTERPROCEDURAL_OPTIMIZATION is enforced when
enabled. Run "cmake --help-policy CMP0069" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
INTERPROCEDURAL_OPTIMIZATION property will be ignored for target
'python-bindings'.
Call Stack (most recent call first):
3rdparty/pybind11/tools/pybind11Tools.cmake:150 (add_library)
python/CMakeLists.txt:1 (pybind11_add_module)
This warning is for project developers. Use -Wno-dev to suppress it.
Generating done
It's probably safe to ignore it but a red message during the "build" stage is always unsatisfactory. When I enable PYBIND11_CLASSIC_LTO
, the warning disappears.
I'm using cmake-3.18.0.
I don't fully understand the warning - is this something vcpkg have to fix in their vcpkg/scripts/buildsystems/vcpkg.cmake
file? If so, I could open an issue there, but I wanted to check here first.