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()