[cmake-developers] VS Toolchain Support
Olmstead, Don
Don.Olmstead at sony.com
Tue Aug 23 13:58:13 EDT 2016
Hi,
I've been working a bit to get WebKit compiled on Windows using Clang and have been facing some issues with the project files it generates. My setup is VS 2015 Update 3 with the Clang with Microsoft CodeGen (v140_clang_c2).
I noticed that the values within the project property pages are incorrect after generation. As an example by default the toolchain in <LANG>_FLAGS is defining -fms-compatibility. Within the project the default is -fno-ms-compatibility. The value in Configuration Properties -> C/C++ -> Advanced -> Microsoft Compatibility Mode is set to No (-fno-ms-compatibility) not Yes (-fms-compatibility). Under Command Line in C/C++ the All Options contains -fno-ms-compatiblity while in the Additional Options the -fms-extensions is present.
What I am wondering is if there is any way to describe to CMake the structure of the project file so that it can properly create the values. On IRC I got pointed at https://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmVS14CLFlagTable.h;h=5812e79e85d89a706306ea3f1eeac93ae0da72de;hb=refs/heads/master so it looks like things might just be hard coded. If so is there any work being done to more accurately create project files for different toolchains?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160823/8bbb70bf/attachment.html>
More information about the cmake-developers
mailing list