aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-25 11:40:40 +0200
committerThomas White <taw@physics.org>2019-09-25 11:40:40 +0200
commita667578ff8a33146908d40e8bb5f2816f7101f78 (patch)
tree08004a89473e72ce169efa35a02a31686d9d5ecd
parentfeb8e4e62a2c35b1759e3b8e5a3e8025ce06355b (diff)
Add configuration check for argp
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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)