In your CMakeLists.txt at line 20, you have
include(CheckIncludeFileCxx)
This should be
include(CheckIncludeFileCXX)
^^--- Uppercase
Once CheckIncludeFileCXX
is properly included, the error on line 452 should also disappear, since the file defines the function CHECK_INCLUDE_FILE_CXX
.
It has probably only been tested on Windows; since Windows filenames are case-insensitive this would have worked.