Hi all Currently CMake doesn't pass CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET to the test project when running TRY_COMPILE. I filed a bug report for that and attached a patch to it: http://public.kitware.com/Bug/view.php?id=9051 HTH Michael