Some bugfixed to the findpackage script.

This commit is contained in:
Andreas Schneider 2009-02-04 14:26:08 +01:00
parent add8f35bef
commit adb520a3eb

View file

@ -130,17 +130,17 @@ libs.split(" ").each do |lib|
file.printf(" /sw/lib\n")
file.printf(" )\n")
file.printf(" mark_as_advanced(#{lib.upcase}_LIBRARY)\n")
file.printf("\n")
end
file.printf("\n")
libs.split(" ").each do |lib|
file.printf(" if (#{lib.upcase}_LIBRARY)\n")
file.printf(" set(#{lib.upcase}_FOUND TRUE)\n")
file.printf(" mark_as_advanced(#{lib.upcase}_FOUND)\n")
file.printf(" endif (#{lib.upcase}_LIBRARY)\n")
file.printf("\n")
end
file.printf("\n")
file.printf(" set(#{cmakeIncDirNames}\n")
file.printf(" ${#{cmakeIncDirName}}\n")
@ -156,9 +156,9 @@ libs.split(" ").each do |lib|
file.printf(" ${#{lib.upcase}_LIBRARY}\n")
file.printf(" )\n")
file.printf(" endif (#{lib.upcase}_FOUND)\n")
file.printf("\n")
end
file.printf("\n")
file.printf(" if (#{cmakeIncDirNames} AND #{cmakeLibNames})\n")
file.printf(" set(#{cmakeFoundName} TRUE)\n")