aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-10 15:12:23 +0200
committerThomas White <taw@physics.org>2020-09-10 15:12:23 +0200
commita9775db4e0c085fa55637032be5a3629b96b831d (patch)
tree517d9c9a1d7338daff08aef0ef8793d18d2ac7aa
parenta3a84e608370ed50bc5c9ae2934145877d4ed0eb (diff)
CMake: Fix incorrect logical negation
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 329e9677..0256bbb9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -161,10 +161,10 @@ 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)
+if (NOT HAVE_ARGP)
message(ERROR "argp not found. If you're building on Mac OS using libraries"
"from Homebrew, install argp-standalone.")
-endif (!HAVE_ARGP)
+endif (NOT HAVE_ARGP)
# Add the libcrystfel target
add_subdirectory(libcrystfel)