diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a13eeb..34ded2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,9 @@ -cmake_minimum_required (VERSION 2.8.11) +cmake_minimum_required (VERSION 3.22) project (mraa C) FIND_PACKAGE (Threads REQUIRED) -if (CMAKE_VERSION VERSION_LESS "3.1") - if (CMAKE_C_COMPILER_ID STREQUAL "GNU") - set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}") - endif () -else () - set (CMAKE_C_STANDARD 99) -endif () +set (CMAKE_C_STANDARD 99) option (BUILDCPP "Enable C++ (needed by FTDI4222 and tests)" ON)