[CMake] about generated Windows executable

nico sl1200mk2 at gmail.com
Wed Jan 18 04:59:14 EST 2012



Le 18/01/12 09:35, Rolf Eike Beer a écrit :
>> Hi,
>> first, i would like to thank you for this great tool...
>>
>> i'm using cmake on macos 10.7.2, for my project cmake create osx bundle,
>> windows executable, and very soon linux executable.
>> the windows executable is generated thanks to a cross mingw compiler.
>> the problem i'm facing is when i launch my program on windows, a dos
>> shell like appears...
>> is there's a way to prevent that ?
> add_executable(myapp WIN32 ...)
>
> That WIN32 flag is ignored on all other platforms, so no need for an if()
> here.
that did the trick, thank you for your help.
best regards
>
> Eike
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list