aboutsummaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-11-06 10:24:38 -0500
committerThanos <tmakatos@gmail.com>2019-11-07 16:21:48 +0100
commit1cf913cc674f2cb3d8197c638749550bf3d4507c (patch)
tree00bb3f4953a06bda381c3adf5df7be6b4498b918 /lib/CMakeLists.txt
parent6686b7f5963c834566ba57787e949e7d0ffb29f7 (diff)
downloadlibvfio-user-1cf913cc674f2cb3d8197c638749550bf3d4507c.zip
libvfio-user-1cf913cc674f2cb3d8197c638749550bf3d4507c.tar.gz
libvfio-user-1cf913cc674f2cb3d8197c638749550bf3d4507c.tar.bz2
enable -Wall, -Wextra, and -Werror and fix all warnings
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r--lib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 1ae48f2..49e6280 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -40,6 +40,7 @@ add_library(muser SHARED
libmuser_pci.c
cap.c
cap.h)
+set(CMAKE_C_FLAGS "-Wall -Wextra -Werror")
set_target_properties(muser PROPERTIES PUBLIC_HEADER "muser.h;pci.h")
set(MUSER_HEADERS_DIR ${CMAKE_INSTALL_INCLUDEDIR}/muser)
install(TARGETS muser