diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d92e0886fef..900032617a26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,11 +27,6 @@ else() list(APPEND ZIG_CMAKE_PREFIX_PATH "${ZIG_CMAKE_PREFIX_PATH_STRING}") endif() -set(CMAKE_USER_MAKE_RULES_OVERRIDE - ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake) -set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX - ${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_flag_overrides.cmake) - project(zig C CXX) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) diff --git a/cmake/c_flag_overrides.cmake b/cmake/c_flag_overrides.cmake deleted file mode 100644 index c3225d2c4792..000000000000 --- a/cmake/c_flag_overrides.cmake +++ /dev/null @@ -1,13 +0,0 @@ -if(MSVC) - set(CMAKE_C_FLAGS_DEBUG_INIT - "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1") - - set(CMAKE_C_FLAGS_MINSIZEREL_INIT - "/MT /O1 /Ob1 /D NDEBUG") - - set(CMAKE_C_FLAGS_RELEASE_INIT - "/MT /O2 /Ob1 /D NDEBUG") - - set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT - "/MT /Zi /O2 /Ob1 /D NDEBUG") -endif() diff --git a/cmake/cxx_flag_overrides.cmake b/cmake/cxx_flag_overrides.cmake deleted file mode 100644 index 2f5473df93e1..000000000000 --- a/cmake/cxx_flag_overrides.cmake +++ /dev/null @@ -1,13 +0,0 @@ -if(MSVC) - set(CMAKE_CXX_FLAGS_DEBUG_INIT - "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1") - - set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT - "/MT /O1 /Ob1 /D NDEBUG") - - set(CMAKE_CXX_FLAGS_RELEASE_INIT - "/MT /O2 /Ob1 /D NDEBUG") - - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT - "/MT /Zi /O2 /Ob1 /D NDEBUG") -endif()