<div dir="ltr"><div dir="ltr"><div>Hi,</div><div>to do this I currently use the following cross-compiling toolchain : <a href="https://github.com/mstorsjo/llvm-mingw">https://github.com/mstorsjo/llvm-mingw</a><br></div><div><br></div><div>I was able to build Qt (except webstuff since I don't use them) and a large CMake-based project with it for instance.</div><div>Maybe it can be useful ? <br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br></div><div>Best,<br></div><div><font color="#783f04"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif" color="#134f5c">-------</font></div><font size="2" face="arial, helvetica, sans-serif" color="#134f5c">Jean-MichaĆ«l Celerier</font><div><font size="2" face="arial, helvetica, sans-serif" color="#134f5c"><a href="http://www.jcelerier.name" target="_blank">http://www.jcelerier.name</a></font></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 6, 2018 at 11:57 AM Tobias Hunger <<a href="mailto:tobias.hunger@gmail.com">tobias.hunger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi CMake Developers,<br>
<br>
we are currently trying to support Clang (without the -cl;-) on<br>
Windows. This fails since CMake adds extra compiler flags to the<br>
command line which are not in the expected format.<br>
<br>
Stackoverflow[1] suggests to set CMAKE_SYSTEM_NAME to "Generic" to<br>
stop that from happening.<br>
<br>
The blog post[2] referenced by StackOverflow suggests setting<br>
CMAKE_C_FLAGS and CMAKE_CXX_FLAGS to TRUE.<br>
<br>
Both approaches seem like big hammers to me. Are there better ways to<br>
get this going that will have less potential side effects?<br>
<br>
Best Regards,<br>
Tobias<br>
<br>
[1]: <a href="https://stackoverflow.com/questions/46553436/building-with-cmake-ninja-and-clang-on-windows#46593308" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/46553436/building-with-cmake-ninja-and-clang-on-windows#46593308</a><br>
[2]: <a href="https://metricpanda.com/rival-fortress-update-27-compiling-with-clang-on-windows" rel="noreferrer" target="_blank">https://metricpanda.com/rival-fortress-update-27-compiling-with-clang-on-windows</a><br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake-developers" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake-developers</a><br>
</blockquote></div>