diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 248a8a0c92..a8691f3125 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -3075,11 +3075,7 @@ std::string FindOwnExecutable(char const* argv0) } } #else - std::string errorMsg; - std::string exe; - if (!cmSystemTools::FindProgramPath(argv0, exe, errorMsg)) { - // ??? - } + std::string exe = cmsys::SystemTools::FindProgram(argv0); #endif exe = cmSystemTools::ToNormalizedPathOnDisk(std::move(exe)); return exe;