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:
@@ -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")
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user