cp CMakeCaches.txt not CMakeLists.txt

CMakeLists.txt is the build instructions not the build logs. The cache is not much better, but there is no equivalent of config.log, so…
This commit is contained in:
Max Howell 2011-09-01 10:28:11 +01:00
parent d5071d5ded
commit 00cd7a3a9b

View File

@ -264,9 +264,9 @@ class Formula
mkdir_p logs
mv 'config.log', logs
end
if File.exist? 'CMakeLists.txt'
if File.exist? 'CMakeCache.txt'
mkdir_p logs
mv 'CMakeLists.txt', logs
mv 'CMakeCache.txt', logs
end
raise
end