aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2025-04-12 17:13:26 +0200
committerTheo Buehler <tb@openbsd.org>2025-04-12 17:19:52 +0200
commitfcd8751199b259f7ef9c1c0a296a92bc3075c991 (patch)
tree7839e731d9006b1a4fd242b64191ccc7f33a680b
parent583199bf59cd92f40043f6179e79780fd52e2cb0 (diff)
parent441cacf1b7f5b855278fcf01e35b0f65f2db76fb (diff)
downloadportable-fcd8751199b259f7ef9c1c0a296a92bc3075c991.tar.gz
portable-fcd8751199b259f7ef9c1c0a296a92bc3075c991.tar.bz2
portable-fcd8751199b259f7ef9c1c0a296a92bc3075c991.zip
Land #1046 - Fix -Wno-pointer-sign for C++
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3673922..771b2bb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -131,7 +131,7 @@ add_definitions(-D__END_HIDDEN_DECLS=)
131set(CMAKE_POSITION_INDEPENDENT_CODE true) 131set(CMAKE_POSITION_INDEPENDENT_CODE true)
132 132
133if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") 133if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
134 add_definitions(-Wno-pointer-sign) 134 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign")
135endif() 135endif()
136 136
137if(WIN32) 137if(WIN32)