[cmake-developers] old policies interfering with script provided by CPack

Domen Vrankar domen.vrankar at gmail.com
Mon Feb 9 17:14:17 EST 2015


Hi everyone,

During testing of CPackRPM with older CMakeLists.txt I noticed that
cmake_minimum_required from that script affects how CPackRPM script
works.

The policy that is causing problems is CMP0009 - FILE GLOB_RECURSE
calls should not follow symlinks by default.

To get around this problem I thought about wrapping the entire script with:

cmake_policy(PUSH)
cmake_policy(VERSION 3.1)
cmake_policy(POP)

Would this be an acceptable solution?
Does anybody have a better idea?

Thanks,
Domen


More information about the cmake-developers mailing list