From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Thu, 21 May 2020 10:21:50 +0000 (+1000) Subject: CMake: remove explicit `CMAKE_ANSI_CFLAGS` X-Git-Tag: curl-7_73_0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d541f83d5a125dd6394d4af81fab016d3b965b76;p=thirdparty%2Fcurl.git 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d8d532751c..516f162ee8 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$<$:Debug>") set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")