Skip to content

Commit 363c2c4

Browse files
committed
test: fix CMAKE_{C,CXX}_FLAGS manipulation
Use string concatenation instead of creating a list.
1 parent 4db8959 commit 363c2c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ add_compile_definitions(HOST)
121121
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
122122
add_compile_options(-Wno-cast-function-type)
123123

124-
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage")
125-
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage -Wno-deprecated-copy")
124+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
125+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -Wno-deprecated-copy")
126126

127127
##########################################################################
128128

0 commit comments

Comments
 (0)