[cmake-developers] VS2013 + cmake 3.10.0-rc3 errors

Gib Bogle g.bogle at auckland.ac.nz
Sun Nov 12 17:58:58 EST 2017


I am not a developer, I just want to report a problem.


Using cmake 3.10.0-rc3 to build with VS 2013, with a very simple CMakeLists.txt:


set(PROJECTNAME "am_block")
ADD_EXECUTABLE(${PROJECTNAME} am_block.cpp cmgui.cpp network.h)
TARGET_LINK_LIBRARIES(${PROJECTNAME} )


and


cmake -G "Visual Studio 12 Win64"

gives a large number of errors that all concern unrecognised compiler flags, e.g.:


 cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D "C_HAS_WARNING-Wno-uninitialized" /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_0758f.dir\Debug\\" /Fd"cmTC_0758f.dir\Debug\vc120.pdb" /Gd /TC /errorReport:queue  -Wno-uninitialized "C:\Users\Alos Diallo\Desktop\build\CMakeFiles\CMakeTmp\src.c"

cl : Command line error D8021: invalid numeric argument '/Wno-uninitialized' [C:\Users\Alos Diallo\Desktop\build\CMakeFiles\CMakeTmp\cmTC_0758f.vcxproj]


Other unrecognised flags detected are:

Wno-long-double

Wcast-align

Wdisabled-optimization

Wextra

...


These look as if they might be GCC flags.  I see that the latest candidate is rc5, so maybe this has been fixed (I'm reporting the experience of somebody who contacted me with a problem trying to build my software).


Cheers

Gib

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20171112/13836ff8/attachment.html>


More information about the cmake-developers mailing list