OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

OSG 3.3.7 cmake_policy CMP0020


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
gambr
Appreciator


Joined: 22 Jun 2010
Posts: 341

PostPosted: Tue May 05, 2015 7:35 am    Post subject:
OSG 3.3.7 cmake_policy CMP0020
Reply with quote

Hi,
I'm trying to build version 3.3.7 on windows7, VC++ 2012 and Cmake 2.8.10.2
And I get the error:

CMake Error at CMakeLists.txt:43 (cmake_policy):
Policy "CMP0020" is not known to this version of CMake.

Looking at the CMakeLists.txt file and CMake online documentation (http://www.cmake.org/cmake/help/v3.0/policy/CMP0020.html) it seems that at line 42 should be "GREATER 10" instead of "GREATER 9".

Regards,
Gianni
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10893

PostPosted: Tue May 05, 2015 10:09 am    Post subject:
OSG 3.3.7 cmake_policy CMP0020
Reply with quote

Hi Gianni,

The OSG has lots of CMakeList.txt files, which one are you referring to?

Robert.

On 5 May 2015 at 08:36, Gianni Ambrosio <g.ambrosio+> wrote:
Quote:
Hi,
I'm trying to build version 3.3.7 on windows7, VC++ 2012 and Cmake 2.8.10.2
And I get the error:

CMake Error at CMakeLists.txt:43 (cmake_policy):
Policy "CMP0020" is not known to this version of CMake.

Looking at the CMakeLists.txt file and CMake online documentation (http://www.cmake.org/cmake/help/v3.0/policy/CMP0020.html) it seems that at line 42 should be "GREATER 10" instead of "GREATER 9".

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63631#63631








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
gambr
Appreciator


Joined: 22 Jun 2010
Posts: 341

PostPosted: Tue May 05, 2015 10:48 am    Post subject:
Reply with quote

Hi Robert,
the one at root level Smile

Regards
Gianni
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10893

PostPosted: Tue May 05, 2015 11:09 am    Post subject:
OSG 3.3.7 cmake_policy CMP0020
Reply with quote

Hi Gianni,

On 5 May 2015 at 11:48, Gianni Ambrosio <g.ambrosio+> wrote:
Quote:
the one at root level Smile

Thanks for the clarification, what I have checked into svn/trunk and
the OSG-3.2 branch is:

# disable autolinking to qtmain as we have our own main()
functions (new in Qt 5.1)
if(${CMAKE_MAJOR_VERSION} GREATER 2 OR
(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER Cool OR
(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION}
EQUAL 8 AND ${CMAKE_PATCH_VERSION} GREATER 10))
cmake_policy(SET CMP0020 OLD)
endif()

Could you check out svn/trunk and let me know if this is working fine.

Cheers,
Robert


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
gambr
Appreciator


Joined: 22 Jun 2010
Posts: 341

PostPosted: Tue May 05, 2015 12:46 pm    Post subject:
Reply with quote

Hi Robert,
yes I confirm the trunk code builds correctly now.

Regards
Gianni
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts cmake_policy CMP0017 only available f... Ulrich Hertlein Submission 1 Thu Oct 20, 2011 10:12 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP