[CMake] Version 2.8 affects exception handling?

Bill Hoffman bill.hoffman at kitware.com
Sat Nov 28 13:40:08 EST 2009


Bill Spotz wrote:

> I finally got around to doing this, and the only difference in the 
> compile flags is that the new version of cmake uses the compiler flag
> 
>     -mmacosx-version-min=10.5
> 
> where the old one does not.  My MACOSX_DEPLOYMENT_TARGET environment 
> variable is set to 10.5 either way, so I'm not even sure this would make 
> a difference.
> 

This is from these two bugs:

http://public.kitware.com/Bug/view.php?id=9959
http://public.kitware.com/Bug/view.php?id=6195

If the user does not specify a deployment target, CMake should not use 
one.  As a rule we try to keep CMake as default as possible.   gcc -o 
foo foo.c should be the same as add_executable(foo foo.c).  In this case 
that is not true...   Will come up with a fix for 2.8.1.   As a work 
around, I think if you do this set(CMAKE_OSX_DEPLOYMENT_TARGET "") it 
should stop CMake from adding the flag.

-Bill


More information about the CMake mailing list