summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Marks <807580+SamuelMarks@users.noreply.github.com>2020-05-21 20:21:50 +1000
committerDaniel Stenberg <daniel@haxx.se>2020-09-04 09:35:55 +0200
commitd541f83d5a125dd6394d4af81fab016d3b965b76 (patch)
treebc086c2bfa48172c8e7770a1619cc0e5c23f83ff
parenta27af8b510edcd862e9ce17658a16308ba68c7e9 (diff)
downloadcurl-d541f83d5a125dd6394d4af81fab016d3b965b76.tar.gz
CMake: remove explicit `CMAKE_ANSI_CFLAGS`
This variable was removed from cmake in commit https://gitlab.kitware.com/cmake/cmake/commit/5a834b0bb0bc288. A later CMake commit removes the variable from the tests, claiming that it was removed in CMake 2.6 Reviewed-By: Peter Wu Closes #5439
-rw-r--r--CMakeLists.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8d532751..516f162ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -246,10 +246,6 @@ if(ENABLE_MANUAL)
set(USE_MANUAL ON)
endif()
-# We need ansi c-flags, especially on HP
-set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
-set(CMAKE_REQUIRED_FLAGS ${CMAKE_ANSI_CFLAGS})
-
if(CURL_STATIC_CRT)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")