diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3ab56d6081599f14745e97a4f378465c0220e20..15bafd081654175089b44f3b4cd6ba46afa053f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,7 @@ include_directories(utils)
 
 # Compiler flags
 include(GetKokkosCompilerFlags)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
 
 # Pastis binary
 add_executable(pastis main.cpp)