diff --git a/packages/g/gdal/xmake.lua b/packages/g/gdal/xmake.lua index 122f071a64b..e730d0ac7e3 100644 --- a/packages/g/gdal/xmake.lua +++ b/packages/g/gdal/xmake.lua @@ -118,9 +118,5 @@ package("gdal") end) on_test(function (package) - assert(package:check_cxxsnippets({test = [[ - #include - 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)