From a286cc0bc4e0fadc0561c3ade1b1db674fba7c4b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sun, 29 Oct 2023 18:21:12 -0700 Subject: [PATCH] Fix if syntax. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index da8094f..f2b9d97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE # Include getopt only if no native implementation found. -if(!HAVE_GETOPT) +if(NOT HAVE_GETOPT_LONG) target_sources(${PROJECT_NAME} PRIVATE getopt.c getopt1.c) endif()