CMake error on Win32

I am getting the following error from CMake :-

CMake Error at CMakeLists.txt:227 (set_property):

set_property given invalid scope CACHE. Valid scopes are GLOBAL,

DIRECTORY, TARGET, SOURCE, TEST.

Can someone familiar with CMake deal with this please,

Aaron

Aaron Gray <aaronngray.lists@gmail.com> writes:

I am getting the following error from CMake :-

    CMake Error at CMakeLists.txt:227 (set_property):

    set_property given invalid scope CACHE. Valid scopes are GLOBAL,

    DIRECTORY, TARGET, SOURCE, TEST.

Can someone familiar with CMake deal with this please,

Please upgrade to cmake version 2.8 or above.

nobled: is that CACHE modifier really needed?

Hi Oscar,

Is there a way to make it work with CMake 2.6? That is what the public
win32 buildbot has and I hate messing around with it.

- Daniel

Hello Daniel.

Daniel Dunbar <daniel@zuster.org> writes:

Is there a way to make it work with CMake 2.6? That is what the public
win32 buildbot has and I hate messing around with it.

After reading the documentation, it seems that there is no way. The only
cure is to remove the change.

Before seeing your message I've bumped the required version to 2.8 on
CMakeLists.txt. Of course this can be reverted too, but we'll see more
problems like this on the future: people using 2.8 which send patches
without testing them on 2.6 (and figuring out the compatibility from
reading the documentation is not always easy.) I'm using 2.8 on all
systems, that's why the patch was accepted after testing. If we agree on
using 2.6 for more time, I'll have to install it on couple of machines.

Really, I have no strong opinion about this. So you decide. If upgrading
to 2.6 is too much trouble, I'll revert the changes. But please consider
that we must upgrade at some time, otherwise we risk inconveniencing
contributors and perhaps having some tricky bug report about
incompatible changes introduced by new cmake versions.