Force c++17 standard so we can use filesystem std lib. Currently will only work on gcc until cmake update.

This commit is contained in:
Kevin Whitaker
2017-01-29 20:31:46 -05:00
parent ad26e8351f
commit f291b65a47
2 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 3.1)
project(arbitrateor)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 11) #Change to 17 when possible for filesystem support
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++1z") #Until then, force c++17 where we can.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")

View File

@@ -23,6 +23,7 @@
#include <Wt/WServer>
#include <Wt/WApplication>
#include "WebInterface.h"
#include <experimental/filesystem> //TODO:Change to non-gcc way when officially using c++17
GroovePlayer::GroovePlayer(std::string dbFile) : sqliteConnection(dbFile)
{