From a667578ff8a33146908d40e8bb5f2816f7101f78 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 25 Sep 2019 11:40:40 +0200 Subject: Add configuration check for argp --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f14776a..08e3905b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,6 +140,13 @@ endif (OpenCL_FOUND) # Check for nice clock function check_symbol_exists(clock_gettime "time.h" HAVE_CLOCK_GETTIME) +# Check for argp +check_symbol_exists(argp_parse "argp.h" HAVE_ARGP) +if (!HAVE_ARGP) + message(ERROR "argp not found. If you're building on Mac OS using libraries" + "from Homebrew, install argp-standalone.") +endif (!HAVE_ARGP) + # Add the libcrystfel target add_subdirectory(libcrystfel) -- cgit v1.2.3