From c5bf9754fe22d81dbc006e72859bcaff8a2a25f7 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 6 Aug 2023 08:12:22 +0200 Subject: [PATCH] add argp hints for standalone --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d311930..eba61b13 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)