aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Blake2018-06-14 15:51:11 +0100
committerCharlie Blake2018-06-14 15:51:11 +0100
commit0a3b47ef5720aa0199d9a65e6588291e44592438 (patch)
tree136484548d5b7d251b0ce634b287f04a043d4438
parentUpdate make script to work on other machine (diff)
downloadmetasol-0a3b47ef5720aa0199d9a65e6588291e44592438.tar.gz
metasol-0a3b47ef5720aa0199d9a65e6588291e44592438.zip

Add chrono header to make work on other machine

-rw-r--r--CMakeLists.txt3
-rw-r--r--src/main/evaluation/benchmark.h1
-rw-r--r--src/main/evaluation/solvability_calc.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b7ab754..5e086e9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,7 +133,8 @@ endif()
## compile options ############################################################
###############################################################################
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -DBOOST_LOG_DYN_LINK -pthread -pedantic -Wall -Wextra \
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -DBOOST_LOG_DYN_LINK
+-lboost_system -pthread -pedantic -Wall -Wextra \
-Wcast-align -Wcast-qual -Wformat=2 -Winit-self \
-Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept \
-Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow \
diff --git a/src/main/evaluation/benchmark.h b/src/main/evaluation/benchmark.h
index f8737ce..83c9638 100644
--- a/src/main/evaluation/benchmark.h
+++ b/src/main/evaluation/benchmark.h
@@ -5,6 +5,7 @@
#ifndef SOLVITAIRE_BENCHMARK_H
#define SOLVITAIRE_BENCHMARK_H
+#include <chrono>
#include "../game/sol_rules.h"
diff --git a/src/main/evaluation/solvability_calc.h b/src/main/evaluation/solvability_calc.h
index ffe3661..a80616c 100644
--- a/src/main/evaluation/solvability_calc.h
+++ b/src/main/evaluation/solvability_calc.h
@@ -7,6 +7,7 @@
#include <vector>
#include <set>
+#include <chrono>
#include "../game/sol_rules.h"