]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CMake: remove explicit `CMAKE_ANSI_CFLAGS`
authorSamuel Marks <807580+SamuelMarks@users.noreply.github.com>
Thu, 21 May 2020 10:21:50 +0000 (20:21 +1000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 4 Sep 2020 07:35:55 +0000 (09:35 +0200)
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

CMakeLists.txt

index d8d532751cd6aa9b935808a8fda3ed03f91bc44e..516f162ee8cba23f0ea22a8ce5502c7af7c3cf5c 100644 (file)
@@ -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")