When CMake_TEST_EXTERNAL_CMAKE is set then we are not actually building CMake so we do not need this check.