diff options
author | Sadie Powell <sadie@witchery.services> | 2024-08-15 12:14:06 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-08-15 12:14:06 +0100 |
commit | e35a86661dc5a3f0118f3ef0b616f709e476d084 (patch) | |
tree | 6dd9bed7b97225d6ade381512d5f8b963b5ac09d /src/CMakeLists.txt | |
parent | 528b5938ec71abed396248cf5e00f346e685aaea (diff) |
Remove support for MinGW.
All of our builds are fully native on Windows so there's no need
for this anymore.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dcad8c83c..79d10e39c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,18 +30,8 @@ if(WIN32) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/win32/win32.rc LANGUAGE RC) # Add the resource file to the list of sources list(APPEND SRC_SRCS ${CMAKE_CURRENT_BINARY_DIR}/win32/win32.rc) - # For MinGW, we have to change the compile flags - if(MINGW) - set(RC_CFLAGS "-DMINGW -Ocoff -I${Anope_SOURCE_DIR}/include") - # If any sort of debugging is being enabled, add a _DEBUG define to the flags for the resource compiler - if(CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "RELWITHDEBINFO") - set(RC_CFLAGS "${RC_CFLAGS} -D_DEBUG") - endif() - set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/win32/win32.rc COMPILE_FLAGS "${RC_CFLAGS}") - # For anything else, assumingly Visual Studio at this point, use a different set of compile flags - else() - set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/win32/win32.rc COMPILE_FLAGS "/i\"${Anope_SOURCE_DIR}/include\"") - endif() + + set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/win32/win32.rc COMPILE_FLAGS "/i\"${Anope_SOURCE_DIR}/include\"") endif() # If compiling with Visual Studio, create a static library out of win32/win32_memory.cpp to be included with everything else, needed to override its override of new/delete operators |