forked from wolfSSL/wolfssl
Fix issue with CMake build where CMAKE_C_FLAGS is empty.
This commit is contained in:
@ -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
|
# 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
|
# compiler. We need to replace those spaces with semicolons in order to treat it
|
||||||
# as a CMake list.
|
# 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}")
|
add_to_options_file("${CMAKE_C_FLAGS_LIST}" "${OPTION_FILE}")
|
||||||
|
|
||||||
file(APPEND ${OPTION_FILE} "\n#ifdef __cplusplus\n")
|
file(APPEND ${OPTION_FILE} "\n#ifdef __cplusplus\n")
|
||||||
|
Reference in New Issue
Block a user