Skip to content
Snippets Groups Projects
Commit 287e8236 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Nicolas Jager
Browse files

C++14 standard as a build requirement


We're using some C++14 and later functionalities.

Change-Id: Ifb0dbf401c084b57312c5744684faf4d8b932db7
Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
parent 27347749
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,6 @@ INCLUDE(GNUInstallDirs) ...@@ -20,7 +20,6 @@ INCLUDE(GNUInstallDirs)
INCLUDE(CMakePackageConfigHelpers) INCLUDE(CMakePackageConfigHelpers)
INCLUDE(GenerateExportHeader) INCLUDE(GenerateExportHeader)
ADD_DEFINITIONS("-std=c++1y")
ADD_DEFINITIONS( ADD_DEFINITIONS(
${QT_DEFINITIONS} ${QT_DEFINITIONS}
-fexceptions -fexceptions
...@@ -40,6 +39,9 @@ IF (CMAKE_COMPILER_IS_GNUCC) ...@@ -40,6 +39,9 @@ IF (CMAKE_COMPILER_IS_GNUCC)
ENDIF() ENDIF()
ENDIF() ENDIF()
SET(CMAKE_CXX_STANDARD 14)
SET(CXX_STANDARD_REQUIRED TRUE)
SET(CMAKE_AUTOMOC TRUE) SET(CMAKE_AUTOMOC TRUE)
SET(LOCAL_CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/") SET(LOCAL_CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment