CMake freezes when $CC env variable is non-empty and whitespace-only
A simple CMakeLists.txt containing:
project(test C)
When the $CC environment variable is set to " " (blank), CMake freezes and runs indefinitely with 100% CPU. The process does not make any system calls after it freezes. Tested with cmake 3.6.0 under CentOS.