update gdal test (#4870)

* update gdal test

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/4873/head
Elite-stay 4 months ago committed by GitHub
parent 3ea4568ece
commit 90bd76abf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/g/gdal/xmake.lua

@ -118,9 +118,5 @@ package("gdal")
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <ogrsf_frmts.h>
void test(int argc, char** argv) {
GDALAllRegister();
}]]}, {configs = {languages = "c++11"}, includes = "ogrsf_frmts.h"}))
assert(package:has_cxxfuncs("GDALAllRegister", {configs = {languages = "c++11"}, includes = "ogrsf_frmts.h"}))
end)

Loading…
Cancel
Save