[cmake-developers] Making GUI applications by default

Brad King brad.king at kitware.com
Mon Mar 5 08:44:10 EST 2012


On 3/4/2012 5:29 PM, Stephen Kelly wrote:
> I happened to read a little bit about CPack recently
>
> http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#Overview
>
> The recommendation is to not use MACOSX_BUNDLE when using cpack, so I thought
> maybe that makes it different enough to WIN32_EXECUTABLE that they should be
> different CMAKE_ properties.
>
> set(CMAKE_WIN32_EXECUTABLE ON)
> set(CMAKE_MACOSX_BUNDLE ON)
>
> That would also mean that I can actually submit the patch. I'm not so keen on
> having to change every generator instead. Actually I think the existing patch is
> better than touching every generator anyway (that's at least in part why there
> is an abstraction).

That's an argument to not have a generalized property name at all,
so just SetPropertyDefault for WIN32_EXECUTABLE and MACOSX_BUNDLE
would be sufficient.

Thanks,
-Brad



More information about the cmake-developers mailing list