add argp hints for standalone
This commit is contained in:
+4
-1
@@ -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)
|
||||
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)
|
||||
message(FATAL_ERROR "argp library not available")
|
||||
endif(NOT LIB_ARGP)
|
||||
|
||||
Reference in New Issue
Block a user