fix c++14 flag

CMake has an option to automatically set compilation flags instead of
setting “-std=c++14” manually.

Change-Id: I72d31b9836503ac19dc3e8e65cbdc358430771e1
Reviewed-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 125edaf..e446b7a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,7 +16,9 @@
 MESSAGE("Building Ring version - " ${RING_VERSION_NAME} " " ${RING_VERSION})
 SET(PROJ_COPYRIGHT " © 2015-2017 Savoir-faire Linux \n GPLv3 https://www.gnu.org/copyleft/gpl.html")
 
-ADD_DEFINITIONS("-std=c++14 -stdlib=libc++ -fobjc-arc")
+SET(CMAKE_CXX_STANDARD 14)
+
+ADD_DEFINITIONS("-stdlib=libc++ -fobjc-arc")
 
 PROJECT(${PROJ_NAME})