Configure failure: Feature check fails because it matches username by accident
Running ./configure
gives me this:
-- Checking if compiler supports needed C++17 constructs
-- Checking if compiler supports needed C++17 constructs - yes
-- Checking if compiler supports C++ make_unique
-- Checking if compiler supports C++ make_unique - no
-- Checking if compiler supports C++ unique_ptr
-- Checking if compiler supports C++ unique_ptr - no
CMake Error at CMakeLists.txt:92 (message):
The C++ compiler does not support C++11 (e.g. std::unique_ptr).
-- Configuring incomplete, errors occurred!
See also "/home/mwarning/cmake/CMakeFiles/CMakeOutput.log".
See also "/home/mwarning/cmake/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
The cause is this line:
if(check_output MATCHES "[Ww]arning")
(https://github.com/Kitware/CMake/blob/master/Source/Checks/cm_cxx_features.cmake#L30)
... and my username is part of the path in the output.
Edited by mwarning