From: Romain Forlot Date: Fri, 22 Mar 2019 10:01:34 +0000 (+0100) Subject: Use C++11 standard by default X-Git-Tag: 7.99.1~4 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5c0522378bf12d2103093eef813f962864bec692;p=src%2Flibafb-helpers.git Use C++11 standard by default Needed for older Ubuntu LTS distribution 16.04 Change-Id: I7c1d23eecf34b2e86cfcd9de5a8f755c690cbe26 Signed-off-by: Romain Forlot --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 95ce156..4815dfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,8 @@ set(PROJECT_URL "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/ set(PROJECT_AUTHOR "Ar Foll, Fulup") set(PROJECT_AUTHOR_MAIL "fulup@iot.bzh") set(PROJECT_LICENSE "APL2.0") -set(PROJECT_LANGUAGES "C") +set(PROJECT_LANGUAGES "C CXX") +set (CMAKE_CXX_STANDARD 11) if(NOT CMAKE_INSTALL_PREFIX) set(CMAKE_INSTALL_PREFIX "/usr")