add argp hints for standalone

This commit is contained in:
John
2023-08-06 08:12:22 +02:00
parent 8e55d44a14
commit c5bf9754fe
+4 -1
View File
@@ -75,7 +75,10 @@ check_include_file(dev/usb/uftdiio.h HAVE_FREEBSD_UFTDI -DHAVE_FREEBSD_UFTDI=1)
check_function_exists(argp_parse HAVE_ARGP) check_function_exists(argp_parse HAVE_ARGP)
if(NOT HAVE_ARGP) if(NOT HAVE_ARGP)
find_library(LIB_ARGP NAMES argp argp-standalone) if(NOT ARGP_HINTS)
set(ARGP_HINTS ~/argp-standalone/src)
endif(NOT ARGP_HINTS)
find_library(LIB_ARGP NAMES argp argp-standalone HINTS ARGP_HINTS)
if (NOT LIB_ARGP) if (NOT LIB_ARGP)
message(FATAL_ERROR "argp library not available") message(FATAL_ERROR "argp library not available")
endif(NOT LIB_ARGP) endif(NOT LIB_ARGP)