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
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers