CMake: Fix EXTRA_CFLAGS after commit cae0c65. [skip appveyor]
authorDenis Ovsienko <denis@ovsienko.info>
Tue, 3 Aug 2021 22:25:02 +0000 (23:25 +0100)
committerDenis Ovsienko <denis@ovsienko.info>
Tue, 3 Aug 2021 22:25:02 +0000 (23:25 +0100)
Same as in libpcap.

CMakeLists.txt

index 8dec72b6a3f683ca247ef50644b4e127ab5adbd8..95da37bc99d9eeb7afaf3ddf40c4980f5801a829 100644 (file)
@@ -925,7 +925,7 @@ endif()
 #
 if(NOT "${EXTRA_CFLAGS}" STREQUAL "")
     foreach(_extra_cflag ${EXTRA_CFLAGS})
-        check_and_add_compiler_option(_extra_cflag)
+        check_and_add_compiler_option("${_extra_cflag}")
     endforeach(_extra_cflag)
     message(STATUS "Added extra compile options (${EXTRA_CFLAGS})")
 endif()