b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/CMakeLists.txt |
| 2 | +++ b/CMakeLists.txt |
| 3 | @@ -41,12 +41,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") |
| 4 | target_compile_definitions(miniupnpc-private INTERFACE _DARWIN_C_SOURCE) |
| 5 | endif () |
| 6 | |
| 7 | -# Set compiler specific build flags |
| 8 | -if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
| 9 | - set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
| 10 | - target_compile_options(miniupnpc-private INTERFACE -Wall) |
| 11 | -endif () |
| 12 | - |
| 13 | # Suppress noise warnings |
| 14 | if (MSVC) |
| 15 | target_compile_definitions(miniupnpc-private INTERFACE _CRT_SECURE_NO_WARNINGS) |