[CMake] CMake Error Flagged in MSVC Toolchain File

Osman Zakir osmanzakir90 at hotmail.com
Fri Nov 8 14:22:04 EST 2019


I tried to configure a FLTK build with this:
"make .. -G "Visual Studio 16 2019" -A x64 -T "ClangCl" -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_COMPILER=C:/llvm-project/install/bin/clang-cl.exe -DCMAKE_C_COMPILER=C:/llvm-project/install/bin/clang-cl.exe -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Xclang -pedantic -Xclang -std=c++17 -Xclang -Wall -Xclang -fexceptions"
"
and got an error saying:
"
CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Microsoft/VC/v160/Platforms/x64/PlatformToolsets/ClangCL/Toolset.targets:1:
  Parse error.  Expected a command name, got unquoted argument with text​
  "<!--".​
Call Stack (most recent call first):​
  C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeDetermineSystem.cmake:93 (include)​
  CMakeLists.txt:24 (project)​
​
​
-- Configuring incomplete, errors occurred!
"
The Toolset.targets file it's talking about is attached to this message.  If you guys know how to fix this error, it'd be a great help.  Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191108/e105a014/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Toolset.targets
Type: application/octet-stream
Size: 970 bytes
Desc: Toolset.targets
URL: <https://cmake.org/pipermail/cmake/attachments/20191108/e105a014/attachment.obj>


More information about the CMake mailing list