CMake fails to confgure when include Chaiscript as a subproject and use Visual Studio 2015 generator


#1

In my project’s CMakeList, I include chaiscript (which is added as a git submodule under library/chaiscript), just like below:

add_subdirectory(library/chaiscript)
include_directories(library/chaiscript/include)

When using MSYS generator, the CMake configure run just fine. The same goes to using CMake only with Chaiscript. However when configuring my project (which includes Chaiscript), an error shows that compiler does not support variadic templates.

Here’s the CMake output (only the part that does not look ok):

Checking C++11 support for "auto" (N2546)
Checking C++11 support for "auto" (N2546) -- not supported
Checking C++11 support for "nullptr" (N2431)
Checking C++11 support for "nullptr" (N2431) -- not supported
Checking C++11 support for "lambda" (N2927)
Checking C++11 support for "lambda" (N2927) -- not supported
Checking C++11 support for "static_assert" (N1720)
Checking C++11 support for "static_assert" (N1720) -- not supported
Checking C++11 support for "rvalue_references" (N2118)
Checking C++11 support for "rvalue_references" (N2118) -- not supported
Checking C++11 support for "decltype" (N2343)
Checking C++11 support for "decltype" (N2343) -- not supported
Checking C++11 support for "cstdint"
Checking C++11 support for "cstdint" -- not supported
Checking C++11 support for "long_long" (N1811)
Checking C++11 support for "long_long" (N1811) -- not supported
Checking C++11 support for "variadic_templates" (N2555)
Checking C++11 support for "variadic_templates" (N2555) -- not supported
Checking C++11 support for "constexpr" (N2235)
Checking C++11 support for "constexpr" (N2235) -- not supported
Checking C++11 support for "sizeof_member" (N2253)
Checking C++11 support for "sizeof_member" (N2253) -- not supported
Checking C++11 support for "__func__" (N2340)
Checking C++11 support for "__func__" (N2340) -- not supported 
CMake Error at library/chaiscript/CMakeLists.txt:134 (message):
  The selected compiler does not support the C++11 feature Variadic
  Templates.

Simply put, all the C++ feature tests fail.

And below are the two error files:
CMakeError.log

The C compiler identification could not be found in "D:/New folder (3)/CMakeFiles/3.4.1/CompilerIdC/CompilerIdC.vcxproj"

The CXX compiler identification could not be found in "D:/New folder (3)/CMakeFiles/3.4.1/CompilerIdCXX/CompilerIdCXX.vcxproj"

CMakeOutput.log

The system is: Windows - 10.0.10586 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:  
Build flags: 
Id flags: 

The output was:
0
Microsoft (R) Build Engine version 14.0.24723.2
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/30/2015 1:24:45 PM.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Project "D:\New folder (3)\CMakeFiles\3.4.1\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /nologo /W0 /WX- /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
  CompilerIdC.vcxproj -> D:\New folder (3)\CMakeFiles\3.4.1\CompilerIdC\.\CompilerIdC.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "D:\New folder (3)\CMakeFiles\3.4.1\CompilerIdC\CompilerIdC.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.10


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

The C compiler identification is MSVC, found in "D:/New folder (3)/CMakeFiles/3.4.1/CompilerIdC/CompilerIdC.exe"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:  
Build flags: 
Id flags: 

The output was:
0
Microsoft (R) Build Engine version 14.0.24723.2
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/30/2015 1:24:49 PM.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Project "D:\New folder (3)\CMakeFiles\3.4.1\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /nologo /W0 /WX- /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
  CompilerIdCXX.vcxproj -> D:\New folder (3)\CMakeFiles\3.4.1\CompilerIdCXX\.\CompilerIdCXX.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe
FinalizeBuildStatus:
  Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
  Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "D:\New folder (3)\CMakeFiles\3.4.1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.68


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

The CXX compiler identification is MSVC, found in "D:/New folder (3)/CMakeFiles/3.4.1/CompilerIdCXX/CompilerIdCXX.exe"

Determining if the C compiler works passed with the following output:
Change Dir: D:/New folder (3)/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_03093.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.24723.2

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 12/30/2015 1:24:53 PM.

The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.

Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_03093.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_03093.dir\Debug\".

  Creating directory "D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_03093.dir\Debug\cmTC_03093.tlog\".

InitializeBuildStatus:

  Creating "cmTC_03093.dir\Debug\cmTC_03093.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_03093.dir\Debug\\" /Fd"cmTC_03093.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "D:\New folder (3)\CMakeFiles\CMakeTmp\testCCompiler.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_03093.dir\Debug\\" /Fd"cmTC_03093.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "D:\New folder (3)\CMakeFiles\CMakeTmp\testCCompiler.c"

  

  testCCompiler.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_03093.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /Debug /PDB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_03093.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_03093.lib" /MACHINE:X64  /machine:x64 /debug cmTC_03093.dir\Debug\testCCompiler.obj

  cmTC_03093.vcxproj -> D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_03093.exe

FinalizeBuildStatus:

  Deleting file "cmTC_03093.dir\Debug\cmTC_03093.tlog\unsuccessfulbuild".

  Touching "cmTC_03093.dir\Debug\cmTC_03093.tlog\cmTC_03093.lastbuildstate".

Done Building Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_03093.vcxproj" (default targets).



Build succeeded.

    0 Warning(s)

    0 Error(s)



Time Elapsed 00:00:04.39



Detecting C compiler ABI info compiled with the following output:
Change Dir: D:/New folder (3)/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_d083b.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.24723.2

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 12/30/2015 1:24:58 PM.

The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.

Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_d083b.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_d083b.dir\Debug\".

  Creating directory "D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_d083b.dir\Debug\cmTC_d083b.tlog\".

InitializeBuildStatus:

  Creating "cmTC_d083b.dir\Debug\cmTC_d083b.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d083b.dir\Debug\\" /Fd"cmTC_d083b.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\Program Files (x86)\CMake\share\cmake-3.4\Modules\CMakeCCompilerABI.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d083b.dir\Debug\\" /Fd"cmTC_d083b.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\Program Files (x86)\CMake\share\cmake-3.4\Modules\CMakeCCompilerABI.c"

  

  CMakeCCompilerABI.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_d083b.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /Debug /PDB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_d083b.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_d083b.lib" /MACHINE:X64  /machine:x64 /debug cmTC_d083b.dir\Debug\CMakeCCompilerABI.obj

  cmTC_d083b.vcxproj -> D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_d083b.exe

FinalizeBuildStatus:

  Deleting file "cmTC_d083b.dir\Debug\cmTC_d083b.tlog\unsuccessfulbuild".

  Touching "cmTC_d083b.dir\Debug\cmTC_d083b.tlog\cmTC_d083b.lastbuildstate".

Done Building Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_d083b.vcxproj" (default targets).



Build succeeded.

    0 Warning(s)

    0 Error(s)



Time Elapsed 00:00:04.07



Determining if the CXX compiler works passed with the following output:
Change Dir: D:/New folder (3)/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_885a4.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.24723.2

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 12/30/2015 1:25:04 PM.

The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.

Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_885a4.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_885a4.dir\Debug\".

  Creating directory "D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_885a4.dir\Debug\cmTC_885a4.tlog\".

InitializeBuildStatus:

  Creating "cmTC_885a4.dir\Debug\cmTC_885a4.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_885a4.dir\Debug\\" /Fd"cmTC_885a4.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "D:\New folder (3)\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_885a4.dir\Debug\\" /Fd"cmTC_885a4.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "D:\New folder (3)\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"

  

  testCXXCompiler.cxx

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_885a4.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /Debug /PDB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_885a4.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_885a4.lib" /MACHINE:X64  /machine:x64 /debug cmTC_885a4.dir\Debug\testCXXCompiler.obj

  cmTC_885a4.vcxproj -> D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_885a4.exe

FinalizeBuildStatus:

  Deleting file "cmTC_885a4.dir\Debug\cmTC_885a4.tlog\unsuccessfulbuild".

  Touching "cmTC_885a4.dir\Debug\cmTC_885a4.tlog\cmTC_885a4.lastbuildstate".

Done Building Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_885a4.vcxproj" (default targets).



Build succeeded.

    0 Warning(s)

    0 Error(s)



Time Elapsed 00:00:04.06



Detecting CXX compiler ABI info compiled with the following output:
Change Dir: D:/New folder (3)/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_14191.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.24723.2

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 12/30/2015 1:25:09 PM.

The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.

Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_14191.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_14191.dir\Debug\".

  Creating directory "D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_14191.dir\Debug\cmTC_14191.tlog\".

InitializeBuildStatus:

  Creating "cmTC_14191.dir\Debug\cmTC_14191.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_14191.dir\Debug\\" /Fd"cmTC_14191.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\Program Files (x86)\CMake\share\cmake-3.4\Modules\CMakeCXXCompilerABI.cpp"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_14191.dir\Debug\\" /Fd"cmTC_14191.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\Program Files (x86)\CMake\share\cmake-3.4\Modules\CMakeCXXCompilerABI.cpp"

  

  CMakeCXXCompilerABI.cpp

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_14191.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /Debug /PDB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_14191.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_14191.lib" /MACHINE:X64  /machine:x64 /debug cmTC_14191.dir\Debug\CMakeCXXCompilerABI.obj

  cmTC_14191.vcxproj -> D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_14191.exe

FinalizeBuildStatus:

  Deleting file "cmTC_14191.dir\Debug\cmTC_14191.tlog\unsuccessfulbuild".

  Touching "cmTC_14191.dir\Debug\cmTC_14191.tlog\cmTC_14191.lastbuildstate".

Done Building Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_14191.vcxproj" (default targets).



Build succeeded.

    0 Warning(s)

    0 Error(s)



Time Elapsed 00:00:04.06





Detecting CXX [] compiler features compiled with the following output:
Change Dir: D:/New folder (3)/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_3e58d.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.24723.2

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 12/30/2015 1:25:15 PM.

The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.

Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_3e58d.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_3e58d.dir\Debug\".

  Creating directory "D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_3e58d.dir\Debug\cmTC_3e58d.tlog\".

InitializeBuildStatus:

  Creating "cmTC_3e58d.dir\Debug\cmTC_3e58d.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_3e58d.dir\Debug\\" /Fd"cmTC_3e58d.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "D:\New folder (3)\CMakeFiles\feature_tests.cxx"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_3e58d.dir\Debug\\" /Fd"cmTC_3e58d.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "D:\New folder (3)\CMakeFiles\feature_tests.cxx"

  

  feature_tests.cxx

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_3e58d.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /Debug /PDB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_3e58d.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/New folder (3)/CMakeFiles/CMakeTmp/Debug/cmTC_3e58d.lib" /MACHINE:X64  /machine:x64 /debug cmTC_3e58d.dir\Debug\feature_tests.obj

  cmTC_3e58d.vcxproj -> D:\New folder (3)\CMakeFiles\CMakeTmp\Debug\cmTC_3e58d.exe

FinalizeBuildStatus:

  Deleting file "cmTC_3e58d.dir\Debug\cmTC_3e58d.tlog\unsuccessfulbuild".

  Touching "cmTC_3e58d.dir\Debug\cmTC_3e58d.tlog\cmTC_3e58d.lastbuildstate".

Done Building Project "D:\New folder (3)\CMakeFiles\CMakeTmp\cmTC_3e58d.vcxproj" (default targets).



Build succeeded.

    0 Warning(s)

    0 Error(s)



Time Elapsed 00:00:04.05



    Feature record: CXX_FEATURE:1cxx_alias_templates
    Feature record: CXX_FEATURE:1cxx_alignas
    Feature record: CXX_FEATURE:1cxx_alignof
    Feature record: CXX_FEATURE:1cxx_attributes
    Feature record: CXX_FEATURE:1cxx_attribute_deprecated
    Feature record: CXX_FEATURE:1cxx_auto_type
    Feature record: CXX_FEATURE:1cxx_binary_literals
    Feature record: CXX_FEATURE:1cxx_constexpr
    Feature record: CXX_FEATURE:1cxx_contextual_conversions
    Feature record: CXX_FEATURE:1cxx_decltype
    Feature record: CXX_FEATURE:1cxx_decltype_auto
    Feature record: CXX_FEATURE:1cxx_default_function_template_args
    Feature record: CXX_FEATURE:1cxx_defaulted_functions
    Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
    Feature record: CXX_FEATURE:1cxx_delegating_constructors
    Feature record: CXX_FEATURE:1cxx_deleted_functions
    Feature record: CXX_FEATURE:1cxx_digit_separators
    Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
    Feature record: CXX_FEATURE:1cxx_explicit_conversions
    Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
    Feature record: CXX_FEATURE:1cxx_extern_templates
    Feature record: CXX_FEATURE:1cxx_final
    Feature record: CXX_FEATURE:1cxx_func_identifier
    Feature record: CXX_FEATURE:1cxx_generalized_initializers
    Feature record: CXX_FEATURE:1cxx_generic_lambdas
    Feature record: CXX_FEATURE:1cxx_inheriting_constructors
    Feature record: CXX_FEATURE:1cxx_inline_namespaces
    Feature record: CXX_FEATURE:1cxx_lambdas
    Feature record: CXX_FEATURE:1cxx_lambda_init_captures
    Feature record: CXX_FEATURE:1cxx_local_type_template_args
    Feature record: CXX_FEATURE:1cxx_long_long_type
    Feature record: CXX_FEATURE:1cxx_noexcept
    Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
    Feature record: CXX_FEATURE:1cxx_nullptr
    Feature record: CXX_FEATURE:1cxx_override
    Feature record: CXX_FEATURE:1cxx_range_for
    Feature record: CXX_FEATURE:1cxx_raw_string_literals
    Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
    Feature record: CXX_FEATURE:1cxx_return_type_deduction
    Feature record: CXX_FEATURE:1cxx_right_angle_brackets
    Feature record: CXX_FEATURE:1cxx_rvalue_references
    Feature record: CXX_FEATURE:1cxx_sizeof_member
    Feature record: CXX_FEATURE:1cxx_static_assert
    Feature record: CXX_FEATURE:1cxx_strong_enums
    Feature record: CXX_FEATURE:1cxx_template_template_parameters
    Feature record: CXX_FEATURE:1cxx_thread_local
    Feature record: CXX_FEATURE:1cxx_trailing_return_types
    Feature record: CXX_FEATURE:1cxx_unicode_literals
    Feature record: CXX_FEATURE:1cxx_uniform_initialization
    Feature record: CXX_FEATURE:1cxx_unrestricted_unions
    Feature record: CXX_FEATURE:1cxx_user_literals
    Feature record: CXX_FEATURE:1cxx_variadic_macros
    Feature record: CXX_FEATURE:1cxx_variadic_templates

I don’t know if this CMake’s problem, or it comes from the CMakeList.txt file. I ask here first but I might also ask the CMake guy about this too.

If there’s any other file you want to see please let me know.


#2

It would appear that something is going wrong with your compiler selection in the included chaiscript project, as it’s selecting cl.exe and you said you were doing MSYS, so I assume you mean to be using GCC.

Either way, though, I would suggest simply not doing add_subdirectory and simply just doing include_directories as necessary and setting the couple of compiler flags you need on your top level project.


#3

I’ve done what you suggested and the error are now gone. Thank you.