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"

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.