From 5c8e87ee9a201123bbab30e1a238f7e67fa9ff0a Mon Sep 17 00:00:00 2001 From: Jasper Young Date: Tue, 20 Sep 2022 20:10:28 -0400 Subject: [PATCH] Fix CMake CMP0004 Error --- cmake/Modules/FindLibGcrypt.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/Modules/FindLibGcrypt.cmake b/cmake/Modules/FindLibGcrypt.cmake index 0e1727f2..1cbc10a0 100644 --- a/cmake/Modules/FindLibGcrypt.cmake +++ b/cmake/Modules/FindLibGcrypt.cmake @@ -27,6 +27,9 @@ IF(LIBGCRYPTCONFIG_EXECUTABLE) EXEC_PROGRAM(${LIBGCRYPTCONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE LIBGCRYPT_CFLAGS) + string(REPLACE "fgrep: warning: fgrep is obsolescent; using grep -F" "" LIBGCRYPT_LIBRARIES "${LIBGCRYPT_LIBRARIES}") + string(STRIP "${LIBGCRYPT_LIBRARIES}" LIBGCRYPT_LIBRARIES) + IF(${LIBGCRYPT_CFLAGS} MATCHES "\n") SET(LIBGCRYPT_CFLAGS " ") ENDIF(${LIBGCRYPT_CFLAGS} MATCHES "\n")