[CMake] CMake script mode not backward compatible?
Brad King
brad.king at kitware.com
Mon Oct 29 11:12:54 EDT 2018
On 10/29/2018 04:28 AM, Damien R wrote:
> Hi,
>
> Since cmake 3.10, using cmake in script mode (-P) produce an error with the
> following script:
>
> cmake_minimum_required(VERSION 3.9)
> set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL FALSE)
>
> I did not see something related in the release notes of cmake 3.10 so I
> would like to know if it is a regression, or if I was lucky that it worked
> in cmake prior to 3.10?
It was broken by accident. I've opened an issue:
https://gitlab.kitware.com/cmake/cmake/issues/18523
Please follow progress there.
FWIW, there is little reason to use this command in script mode.
Thanks,
-Brad
More information about the CMake
mailing list