![]() > - Building for: Visual Studio 14 2015Ĭlang-Cl requires a few changes in order to work properly, This sets the platform toolset property that you would > Have you tried setting the toolset? The -T parameter can set the Which value should I put for -T parameter?īTW, is CMAKE_TOOLCHAIN_FILE able to used in this situation? Variables such as ExcludePath, IncludePath, UniversalCRT_IncludePath and However it might include wrong directory likeĬ:\\Program Files (x86)\Windows Kits\10\Include\0.0\ucrt duringīuilding when I build library libcxx. Use command "msbuild ALL_BUILD.vcxproj /p:cltoolexe=clang-cl" to build the If I generate the ALL_BUILD.vcxproj for MSVC 6.0 as usual, I can > Follow this link to subscribe/unsubscribe: > Visit other Kitware open-source projects at > information on each offering, please visit: > Kitware offers various services to support the CMake community. > Please keep messages on-topic and check the CMake FAQ at: > even I defined CMAKE_C_COMPILER / CMAKE_CXX_COMPILER / However it always use MSVC 6.0 as the identified compiler Have you tried setting the toolset? The -T parameter can set the The environment settings instead of %PATH% and %INCLUDE% use The same can be done with Qt Creator and a cloned Visual C++ kit, but in $ set INCLUDE=C:\Program Files (x86)\LLVM\lib\clang\3.7.0\include\ %INCLUDE% $ set PATH=C:\Program Files (x86)\LLVM\msbuild-bin\ %PATH% > I am wondering whether there is any option that I can force MSBuild Visit other Kitware open-source projects at įollow this link to subscribe/unsubscribe: For more information on each offering, please visit: Kitware offers various services to support the CMake community. Powered by Please keep messages on-topic and check the CMake FAQ at: Normally force the VS IDE to use the clang compiler? You could get it to work with ninja, make or nmake. > I am wondering whether there is any option that I can force MSBuild use The environment PATH is already set to clang-cl. > - Found PythonInterp: C:/Python34/python.exe (found version "3.4.4") > - The C compiler identification is MSVC 6.0 > - The CXX compiler identification is MSVC 6.0 > -DCMAKE_C_COMPILER_FORCED=ON -DCMAKE_CXX_COMPILER_FORCED=ON. > $ cmake -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl > CMAKE_C_COMPILER_FORCED / CMAKE_CXX_COMPILER_FORCED: > compiler even I defined CMAKE_C_COMPILER / CMAKE_CXX_COMPILER / However it always use MSVC 6.0 as the identified I would like to use clang-cl with MSBuild on ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |