MantisBT - CMake
View Issue Details
0015554CMakeCPackpublic2015-05-05 13:592015-11-02 09:15
Bogdan Chisamera 
 
normalminoralways
closedfixed 
OSXOSX Yosemite10.10.3
CMake 3.1 
CMake 3.2 
0015554: Wrong OSX version comparison
When trying to build CMake from sources, at the Configure step I'm receiving the following message:
...
Forcing CTEST_TEST_CPACK=OFF on OSX < 10.4
OSX_VERSION='10.10.3'
Unable to find any JVMs matching version "(null)".

No Java runtime present, try --request to install.

It seems that the osx verion is compared as a string resultig osx 10.10.3 to be considered les than osx 10.4.
- download latest cmake sources
- download and install latest cmake for osx
- open cmake gui, then select the sources dir and the destination folder
- Configure
- select Xcode as genarator and "Use default native compilers"
Result: after configuring is done you'll have the message posted above and some of the tests are missing from the solution.
No tags attached.
Issue History
2015-05-05 13:59Bogdan ChisameraNew Issue
2015-05-06 10:22Brad KingNote Added: 0038721
2015-05-06 10:48Bogdan ChisameraNote Added: 0038722
2015-05-06 11:08Brad KingStatusnew => resolved
2015-05-06 11:08Brad KingResolutionopen => fixed
2015-05-06 11:08Brad KingProduct VersionCMake 3.2.2 => CMake 3.1
2015-05-06 11:08Brad KingFixed in Version => CMake 3.2
2015-11-02 09:15Robert MaynardNote Added: 0039802
2015-11-02 09:15Robert MaynardStatusresolved => closed

Notes
(0038721)
Brad King   
2015-05-06 10:22   
This commit:

 Tests: Fix OS X version check to use component-wise test
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f53a3340 [^]

should have addressed this, and is in 3.2.0 and above. Where did you get the sources to build?
(0038722)
Bogdan Chisamera   
2015-05-06 10:48   
Thank you for your quick answer. We are getting the sources from http://cmake.org/cmake.git, [^] but for now we are synced at v3.1.0(76acc12). Recently we started to port our custom generators to v3.2.2.
(0039802)
Robert Maynard   
2015-11-02 09:15   
Closing resolved issues that have not been updated in more than 4 months.