Hi!

I am trying to build using the Open Folder feature of VS (with CMake server 
mode integration) with the Windows binary release of Clang. However, when I try 
to build using clang++.exe, it argues about unknown compiler switches

clang++.exe: error: no such file or directory: '/nologo'

while if I use the clang-cl.exe front-end of Clang, it fails saying

LINK : fatal error LNK1104: cannot open file 'gdi32.lib'

Does this both inside VS and in a developer command prompt. My invocation is as 
follows:

cmake -G Ninja -DCMAKE_CXX_COMPILER=C:/Kellekek/LLVM/Clang/5.0/bin/clang++.exe 
C:\Users\Matty\Source\simplecpp\


My questions:

1. Why does CMake give MSVC params to Clang on Windows?
2. Is there a way to let the clang-cl front-end know how to link to system 
libraries?

Cheers,
Máté
-- 

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

Reply via email to