mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
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
This commit is contained in:
parent
a27af8b510
commit
d541f83d5a
@ -246,10 +246,6 @@ if(ENABLE_MANUAL)
|
|||||||
set(USE_MANUAL ON)
|
set(USE_MANUAL ON)
|
||||||
endif()
|
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)
|
if(CURL_STATIC_CRT)
|
||||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user