From 93d3739ae76a0d7c01f8e195cbe20c6823dc3f1f Mon Sep 17 00:00:00 2001 From: Hayden Roche Date: Tue, 7 Sep 2021 10:43:43 -0700 Subject: [PATCH] Fix issue with CMake build where CMAKE_C_FLAGS is empty. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78946cc54..5607ab702 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1373,7 +1373,7 @@ add_to_options_file("${WOLFSSL_DEFINITIONS}" "${OPTION_FILE}") # CMAKE_C_FLAGS is just a string of space-separated flags to pass to the C # compiler. We need to replace those spaces with semicolons in order to treat it # as a CMake list. -string(REPLACE " " ";" CMAKE_C_FLAGS_LIST ${CMAKE_C_FLAGS}) +string(REPLACE " " ";" CMAKE_C_FLAGS_LIST "${CMAKE_C_FLAGS}") add_to_options_file("${CMAKE_C_FLAGS_LIST}" "${OPTION_FILE}") file(APPEND ${OPTION_FILE} "\n#ifdef __cplusplus\n")