> 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. 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
