Skip to content

Commit b7475b4

Browse files
authored
lib: mbedtls: CMakeLists.txt: fix a typo for CFLAGS (#2662)
CMAKE_C_CFLAGS -> CMAKE_C_FLAGS, this avoids C_FLAGS from environment being overridden. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
1 parent 3386e3a commit b7475b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mbedtls-2.24.0/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")
154154

155155
include(CheckCCompilerFlag)
156156

157-
set(CMAKE_C_FLAGS "${CMAKE_C_CFLAGS} -std=c99")
157+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
158158

159159
if(CMAKE_COMPILER_IS_GNU)
160160
# some warnings we want are not available with old GCC versions

0 commit comments

Comments
 (0)