Explicit dependency on gcc 4.9 or higher
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 7 Oct 2016 12:30:00 +0000 (14:30 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 7 Oct 2016 12:30:00 +0000 (14:30 +0200)
Needed for _Thread_local keyword

Change-Id: Ia68b2d25fd747b87d95a94ac383c0107b276cf2f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt

index 60f8326..9c13cc1 100644 (file)
@@ -1,3 +1,6 @@
+if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9)
+    message(FATAL_ERROR "Require at least gcc-4.9")
+endif(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9)
 
 INCLUDE(FindPkgConfig)