From 63992e1238955f750b160c6619cd01d10cc5bc17 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Wed, 30 Aug 2023 20:50:01 +0800 Subject: [PATCH] Fix bug --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b7ecba..f3eacc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ if (HAVE_STRERROR_R) endif() configure_file("${CMAKE_CURRENT_SOURCE_DIR}/utils_config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/utils_config.h") -if (${CMAKE_C_COMPILER_ID} STREQUAL GNU) +if ("${CMAKE_C_COMPILER_ID}" STREQUAL GNU) add_compile_options(-fPIC) endif()