diff options
author | Theo Buehler <tb@openbsd.org> | 2025-04-12 18:20:53 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2025-04-12 18:22:10 +0200 |
commit | cc764c1f89cefcbbbafb6fa2888363b88468b757 (patch) | |
tree | 82933d71877494e4c636e18044c586637c6ada32 | |
parent | 1e824a0d12df308df6995faf01616054a7a383b0 (diff) | |
parent | 2a63bda5238e4e1d86684f4147e04541bbe75a54 (diff) | |
download | portable-cc764c1f89cefcbbbafb6fa2888363b88468b757.tar.gz portable-cc764c1f89cefcbbbafb6fa2888363b88468b757.tar.bz2 portable-cc764c1f89cefcbbbafb6fa2888363b88468b757.zip |
Land 1149 - minor cmake tweaks
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 771b2bb..8437e02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -72,10 +72,6 @@ endforeach() | |||
72 | 72 | ||
73 | set(BUILD_NC true) | 73 | set(BUILD_NC true) |
74 | 74 | ||
75 | if(CMAKE_SYSTEM_NAME MATCHES "Darwin") | ||
76 | add_definitions(-fno-common) | ||
77 | endif() | ||
78 | |||
79 | if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") | 75 | if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") |
80 | add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__) | 76 | add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__) |
81 | add_definitions(-DHAVE_ATTRIBUTE__DEAD__) | 77 | add_definitions(-DHAVE_ATTRIBUTE__DEAD__) |
@@ -131,7 +127,7 @@ add_definitions(-D__END_HIDDEN_DECLS=) | |||
131 | set(CMAKE_POSITION_INDEPENDENT_CODE true) | 127 | set(CMAKE_POSITION_INDEPENDENT_CODE true) |
132 | 128 | ||
133 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | 129 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
134 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign") | 130 | add_compile_options(-Wno-pointer-sign) |
135 | endif() | 131 | endif() |
136 | 132 | ||
137 | if(WIN32) | 133 | if(WIN32) |