From a9775db4e0c085fa55637032be5a3629b96b831d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 10 Sep 2020 15:12:23 +0200 Subject: CMake: Fix incorrect logical negation --- CMakeLists.txt | 4 ++-- 1 file 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) -- cgit v1.2.3