[cmake-developers] different behavior of cmake_minimum_required(3.0) and 3.1
Brad King
brad.king at kitware.com
Tue Mar 19 12:05:52 EDT 2019
On 3/19/19 11:57 AM, Rolf Eike Beer wrote:
> It has nothing to do with either the policies or the order of
> cmake_minimum_required() and project().
Okay. My order comment was a side note and should be corrected
either way.
> If I require version 3.0 it works, with 3.1 it fails.
See this code in FindPkgConfig:
https://gitlab.kitware.com/cmake/cmake/blob/v3.14.0/Modules/FindPkgConfig.cmake#L128-136
and the documentation note about CMAKE_MINIMUM_REQUIRED_VERSION:
https://cmake.org/cmake/help/v3.14/module/FindPkgConfig.html#command:pkg_check_modules
-Brad
More information about the cmake-developers
mailing list