[CMake] problem with Visual Studio 2010 and additional link flags
kevin martinet
kevin at ityrant.net
Mon Mar 7 08:59:23 EST 2011
On 3/7/2011 1:14 AM, Rolf Eike Beer wrote:
>> In my solution I have several samples, some of which are windows based
>> while other are console based.
>> So I need to be able to change the link flag /SUBSYSTEM:CONSOLE (or
>> /SUBSYSTEM:WINDOWS) depending on the executable I'm building
>> Am I missing something or is it a bug in the VS2010 generator ? (once
>> again, it was working with 2008)
> You are missing the WIN32 argument to ADD_EXECUTABLE().
>
> 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
>
>
Thanks that did the trick
More information about the CMake
mailing list