cmake: Remove warning about CFLAGS environment variable.

CMake 3.11.0 respects this environment var.

Fixes #4681.
This commit is contained in:
Ryan C. Gordon 2021-09-30 10:00:58 -04:00
parent cd6f96dede
commit ab09f3dae5
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 0 additions and 4 deletions

View File

@ -211,10 +211,6 @@ if(UNIX OR MINGW OR MSYS OR (USE_CLANG AND NOT WINDOWS) OR VITA)
set(OPT_DEF_LIBC ON)
endif()
if(NOT ("$ENV{CFLAGS}" STREQUAL ""))
message(WARNING "SDL's CMakeLists.txt no longer checks the CFLAGS environment. Please use CMake's CMAKE_C_FLAGS and CMAKE_BUILD_TYPE variables directly.")
endif()
if(MSVC)
option(FORCE_STATIC_VCRT "Force /MT for static VC runtimes" OFF)
if(FORCE_STATIC_VCRT)