diff --git a/CMakeLists.txt b/CMakeLists.txt index 7238d1e5..b0191f2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,4 @@ -cmake_minimum_required(VERSION 3.8) - -# customize the compiler options CMake uses to initialize variables with -set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/CompilerOptionsOverride.cmake") +cmake_minimum_required(VERSION 3.15) # define a macro that helps defining an option macro(sfml_set_option var default type docstring) diff --git a/cmake/CompilerOptionsOverride.cmake b/cmake/CompilerOptionsOverride.cmake deleted file mode 100644 index d53f7f29..00000000 --- a/cmake/CompilerOptionsOverride.cmake +++ /dev/null @@ -1,5 +0,0 @@ -if(MSVC) - # remove default warning level from CMAKE_CXX_FLAGS_INIT - string(REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT}") - string(REGEX REPLACE "/W[0-4]" "" CMAKE_C_FLAGS_INIT "${CMAKE_C_FLAGS_INIT}") -endif()