CMake script mode not backward compatible?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CMake script mode not backward compatible?

Damien R
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?

Damien R.

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake script mode not backward compatible?

Brad King
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
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake