diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ed9f28b6ab2db60828730149a59a4d0bc254c90c..81c325e17cf18f73a980ee756fac3ac350759f04 100755
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -5,6 +5,7 @@ project(libdap-test)
 set(CMAKE_CXX_STANDARD 11)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(CMAKE_C_FLAGS "-Wall -Wextra")
+set(CMAKE_C_FLAGS "-std=c11")
 
 # Tell CMake to run moc when necessary:
 set(CMAKE_AUTOMOC ON)