[CMake] CMake 2.4.6, MinGW and console application
Brandon Van Every
bvanevery at gmail.com
Thu Jul 5 09:46:36 EDT 2007
On 7/5/07, Sebarnolds [Seb / Frip] <sebarnolds at hotmail.com> wrote:
> Hi.
>
> >
> >Do an ADD_EXECUTABLE *without* [WIN32] as an option. See the docs.
>
> I think you misunderstand me.
You're right, I read too fast.
> Whether I add or not the WIN32 option after
> the ADD_EXECUTABLE, it complains about WinMain at 16. It doesn't seem to change
> anything.
>
> "ADD_EXECUTABLE(map2syBR map2syBR.cpp)" and "ADD_EXECUTABLE(map2syBR WIN32
> map2syBR.cpp)" have the same results.
If you are ABSOLUTELY SURE your build is clean, no leftover stuff from
previous builds, no funny flags, no weirdness anywhere, then this is a
bug. But I think your build is not clean and you've got something
left over somewhere. Try isolating with a very simple "hello world"
and see what behavior you get.
Cheers,
Brandon Van Every
More information about the CMake
mailing list