C:\Jinja2Cpp\build>cmake .. -DCMAKE_INSTALL_PREFIX=../install -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.15.26730.0 -- The CXX compiler identification is MSVC 19.15.26730.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- broken CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Jinja2Cpp/build/CMakeFiles/CMakeTmp Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_f8e1b.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0" Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Build started 10/18/2018 1:51:09 AM. Project "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTC_f8e1b.dir\Debug\". Creating directory "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\Debug\". Creating directory "cmTC_f8e1b.dir\Debug\cmTC_f8e1b.tlog\". InitializeBuildStatus: Creating "cmTC_f8e1b.dir\Debug\cmTC_f8e1b.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. VcpkgTripletSelection: Using triplet "x86-windows" from "C:\vcpkg\installed\x86-windows\" ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\CL.exe /c /I"C:\Program Files (x86)\Visual Leak Detector\include" /I"C:\vcpkg\installed\x86-windows\include" /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f8e1b.dir\Debug\\" /Fd"cmTC_f8e1b.dir\Debug\vc141.pdb" /Gd /TC /analyze- /FC /errorReport:queue C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\testCCompiler.c Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26730 for x86 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /I"C:\Program Files (x86)\Visual Leak Detector\include" /I"C:\vcpkg\installed\x86-windows\include" /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f8e1b.dir\Debug\\" /Fd"cmTC_f8e1b.dir\Debug\vc141.pdb" /Gd /TC /analyze- /FC /errorReport:queue C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\testCCompiler.c testCCompiler.c Link: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\Debug\cmTC_f8e1b.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files (x86)\Visual Leak Detector\lib\Win32" /LIBPATH:"C:\vcpkg\installed\x86-windows\debug\lib" /LIBPATH:"C:\vcpkg\installed\x86-windows\debug\lib\manual-link" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "C:\vcpkg\installed\x86-windows\debug\lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/Jinja2Cpp/build/CMakeFiles/CMakeTmp/Debug/cmTC_f8e1b.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Jinja2Cpp/build/CMakeFiles/CMakeTmp/Debug/cmTC_f8e1b.lib" /MACHINE:X86 /SAFESEH /machine:X86 LDFLAGS=-static-libstdc++ -static-libgcc cmTC_f8e1b.dir\Debug\testCCompiler.obj LINK : warning LNK4044: unrecognized option '/static-libgcc'; ignored [C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj] LINK : fatal error LNK1104: cannot open file 'LDFLAGS=-static-libstdc++.obj' [C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj] Done Building Project "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj" (default target) (1) -> (Link target) -> LINK : warning LNK4044: unrecognized option '/static-libgcc'; ignored [C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj] "C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj" (default target) (1) -> (Link target) -> LINK : fatal error LNK1104: cannot open file 'LDFLAGS=-static-libstdc++.obj' [C:\Jinja2Cpp\build\CMakeFiles\CMakeTmp\cmTC_f8e1b.vcxproj] 1 Warning(s) 1 Error(s) Time Elapsed 00:00:01.68 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! See also "C:/Jinja2Cpp/build/CMakeFiles/CMakeOutput.log". See also "C:/Jinja2Cpp/build/CMakeFiles/CMakeError.log".