[cmake-developers] Fragile OS X version checks failing against 10.10
Sean McBride
sean at rogue-research.com
Fri Dec 12 12:20:17 EST 2014
Hi all,
Dunno why I didn't notice until now, but CMake seems to be doing some fragile checks for OS X version numbers. Specifically in cmCPackPackageMakerGenerator, at least 2 things:
1) a 'double' variable:
this->PackageCompatibilityVersion = 10.4;
10.10 will compare like 10.1 there.
2) a regex:
if(OSX_VERSION MATCHES "^10\\.[0123]" OR OSX_VERSION MATCHES "ProductVersion:\t10\\.[0123]")
message(STATUS "Forcing CTEST_TEST_CPACK=OFF on OSX < 10.4")
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the cmake-developers
mailing list