Skip to content

Commit e79e993

Browse files
committed
cmake: do not add CFLAGS/CXXFLAGS manually, they are used by cmake automatically
https://cmake.org/cmake/help/latest/envvar/CFLAGS.html https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html
1 parent ec5a581 commit e79e993

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,6 @@ set(CURL_DEPS
312312
add_dependencies(curl_external ${CURL_DEPS})
313313

314314
# Now it's time for the main targets!
315-
#
316-
# Read environment variables for compiler flags
317-
string(APPEND CMAKE_C_FLAGS " $ENV{CFLAGS}")
318-
string(APPEND CMAKE_CXX_FLAGS " $ENV{CXXFLAGS}")
319315

320316
# Paths to curl install (adjust as needed)
321317
set(CURL_INCLUDE_DIRS

0 commit comments

Comments
 (0)