Skip to content

Commit 2f9c6ae

Browse files
committed
cmake: use string(APPEND)
1 parent 34c9d1e commit 2f9c6ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ add_dependencies(curl_external ${CURL_DEPS})
314314
# Now it's time for the main targets!
315315
#
316316
# Read environment variables for compiler flags
317-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} $ENV{CFLAGS}")
318-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{CXXFLAGS}")
317+
string(APPEND CMAKE_C_FLAGS " $ENV{CFLAGS}")
318+
string(APPEND CMAKE_CXX_FLAGS " $ENV{CXXFLAGS}")
319319

320320
# Paths to curl install (adjust as needed)
321321
set(CURL_INCLUDE_DIRS

0 commit comments

Comments
 (0)