Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Alexander Shukaev
On 06/18/2016 01:15 PM, Nils Gladitz wrote: On 18.06.2016 13:03, Alexander Shukaev wrote: if(POLICY CMP0011) cmake_policy(SET CMP0011 NEW) endif() if(POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif() CMakeLists.txt: include(xxx) cmake_minimum_required(VERSION 3.1.0) and it still

Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Alexander Shukaev
On 06/18/2016 12:18 PM, Nils Gladitz wrote: On 18.06.2016 11:38, Alexander Shukaev wrote: I did try both variants, after and before cmake_minimum_required(VERSION) but the result is the same. The scope is for sure parent to targets. I don't know what else it could be but this works

Re: [CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Alexander Shukaev
On 06/18/2016 11:02 AM, Nils Gladitz wrote: On 18.06.2016 09:34, Alexander Shukaev wrote: Hello, CMake 3.5.2 here. Why explicitly setting the CMP0063 policy to NEW does not suppress the warning and actually use that new policy? That is if(POLICY CMP0063) cmake_policy(SET CMP0063 NEW

[CMake] Policy CMP0063 is not set: Honor visibility properties for all target

2016-06-18 Thread Alexander Shukaev
Hello, CMake 3.5.2 here. Why explicitly setting the CMP0063 policy to NEW does not suppress the warning and actually use that new policy? That is if(POLICY CMP0063) cmake_policy(SET CMP0063 NEW) endif() and I still get Policy CMP0063 is not set: Honor visibility properties for all targ