CMake fails to configure when "-S ." source method is used