mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Some bugfixed to the findpackage script.
This commit is contained in:
parent
add8f35bef
commit
adb520a3eb
1 changed files with 4 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue