diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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) |