diff options
| author | Theo Buehler <tb@openbsd.org> | 2025-07-07 17:14:11 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2025-07-07 17:14:11 +0200 |
| commit | 24fee6c7dec43720b6985fd757dd3dc14f0410e5 (patch) | |
| tree | a1804376d0950d91dd524c824be274ff54f85f86 | |
| parent | c03d6cb359077f7d8437dfbcd995903c4a50ee76 (diff) | |
| parent | 5c205f4be3eed1aa477c208392956a8935d49f2d (diff) | |
| download | portable-24fee6c7dec43720b6985fd757dd3dc14f0410e5.tar.gz portable-24fee6c7dec43720b6985fd757dd3dc14f0410e5.tar.bz2 portable-24fee6c7dec43720b6985fd757dd3dc14f0410e5.zip | |
Land #1181 - cmake: limit -W to C language
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 182cf96..3a035bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -143,7 +143,7 @@ add_definitions(-D__END_HIDDEN_DECLS=) | |||
| 143 | set(CMAKE_POSITION_INDEPENDENT_CODE true) | 143 | set(CMAKE_POSITION_INDEPENDENT_CODE true) |
| 144 | 144 | ||
| 145 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | 145 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
| 146 | add_compile_options(-Wno-pointer-sign) | 146 | add_compile_options($<$<COMPILE_LANGUAGE:C>:-Wno-pointer-sign>) |
| 147 | endif() | 147 | endif() |
| 148 | 148 | ||
| 149 | if(WIN32) | 149 | if(WIN32) |
