From 63422463cf08a09c820cd6afb060806fe6a7df5f Mon Sep 17 00:00:00 2001 From: mateushonorato Date: Fri, 6 Jan 2017 18:38:18 -0200 Subject: [PATCH] Change CMAKE_CXX_STANDARD from 11 to 14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was getting the following error when trying to compile and install: /home/mateus/Latte-Dock/app/iconitem.cpp: In member function ‘void Latte::IconItem::setSource(const QVariant&)’: /home/mateus/Latte-Dock/app/iconitem.cpp:98:29: error: ‘make_unique’ is not a member of ‘std’ m_svgIcon = std::make_unique(this); So, changing the CMAKE_CXX_STANDARD from 11 to 14 solved this, since make_unique is a C++14 feature. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd57e2e2f..f9bed271b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ project(lattedock) cmake_minimum_required(VERSION 3.0 FATAL_ERROR) -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 14) set(VERSION 0.5.89) set(AUTHOR "Michail Vourlakos, Smith Ar") set(EMAIL "mvourlakos@gmail.com, audoban@openmailbox.org")