CMake Breaks When Encounters File Named "cmake"
Using CMake 3.10.2
CMake seems to break when another file called "cmake" is found in the build directory.
Steps to reproduce:
echo "cmake_minimum_required(VERSION 3.0)" >CMakeLists.txt
mkdir build && cd build
touch cmake
cmake ..
In one of my systems, it notifies me that my compiler can't compile a simple program. I delete the 'cmake' file and it runs properly.
On another, it alerted me that it could not find CMAKE_ROOT
.
I'll see if I can figure it out, and submit a merge request. Might take a bit though, the issue is kind of odd.