diff options
| author | Theo Buehler <tb@openbsd.org> | 2025-04-12 17:13:26 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2025-04-12 17:20:29 +0200 |
| commit | 033df1bf19cb374f8537315d38579039a7ab36f9 (patch) | |
| tree | c601e09207f4320738921e04df21b5695c9e1346 | |
| parent | fcd8751199b259f7ef9c1c0a296a92bc3075c991 (diff) | |
| download | portable-033df1bf19cb374f8537315d38579039a7ab36f9.tar.gz portable-033df1bf19cb374f8537315d38579039a7ab36f9.tar.bz2 portable-033df1bf19cb374f8537315d38579039a7ab36f9.zip | |
Switch to add_compile_options
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 771b2bb..e22a6ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -131,7 +131,7 @@ add_definitions(-D__END_HIDDEN_DECLS=) | |||
| 131 | set(CMAKE_POSITION_INDEPENDENT_CODE true) | 131 | set(CMAKE_POSITION_INDEPENDENT_CODE true) |
| 132 | 132 | ||
| 133 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | 133 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
| 134 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign") | 134 | add_compile_options(-Wno-pointer-sign) |
| 135 | endif() | 135 | endif() |
| 136 | 136 | ||
| 137 | if(WIN32) | 137 | if(WIN32) |
