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 /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 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0381273b2..65553c241 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,12 +31,8 @@ if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang$") execute_process(COMMAND ${CMAKE_C_COMPILER} -print-search-dirs OUTPUT_VARIABLE LINES OUTPUT_STRIP_TRAILING_WHITESPACE) # Find only the part after "libraries: " string(REGEX REPLACE ".*\nlibraries: (.*)$" "\\1" LINE "${LINES}") - # Replace the colons in the list with semicolons (only when not on MinGW, which uses semicolons already), and if on MinGW, just copy the line - if(NOT MINGW) - string(REGEX REPLACE ":" ";" LIBRARIES ${LINE}) - else() - set(LIBRARIES "${LINE}") - endif() + # Replace the colons in the list with semicolons + string(REGEX REPLACE ":" ";" LIBRARIES ${LINE}) # Iterate through the libraries foreach(LIBRARY ${LIBRARIES}) # Check if the first character is an equal sign, and skip that library directory as it is (I believe) the primary default and shows up later in the list anyways @@ -106,13 +102,6 @@ if(NOT MSVC) endif() endif() -# If running under MinGW, we have to force the resource compiler settings (hopefully this will be fixed in a later version of CMake) -if(MINGW) - set(CMAKE_RC_COMPILER_INIT windres) - enable_language(RC) - set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -o <OBJECT> <SOURCE>") -endif() - # Include the checking functions used later in this CMakeLists.txt include(CheckFunctionExists) include(CheckTypeSize) @@ -189,11 +178,6 @@ if(CMAKE_THREAD_LIBS_INIT) list(APPEND LINK_LIBS ${CMAKE_THREAD_LIBS_INIT}) endif() -# Under MinGW, the -shared flag isn't properly set in the module-specific linker flags, add it from the C flags for shared libraries -if(MINGW) - set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS}") -endif() - if(NOT PROGRAM_NAME) set(PROGRAM_NAME anope) endif() |