From 46ae677175d69ce31ad21ba293427327991873db Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sat, 31 Mar 2018 22:11:26 +0200 Subject: [PATCH] support older build systems --- BeezleBot/CMakeLists.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/BeezleBot/CMakeLists.txt b/BeezleBot/CMakeLists.txt index 9d8a6c0..cab3da2 100644 --- a/BeezleBot/CMakeLists.txt +++ b/BeezleBot/CMakeLists.txt @@ -1,14 +1,18 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.6) project(BeezleBot LANGUAGES CXX) -find_package(Boost 1.60.0 COMPONENTS program_options REQUIRED) +find_package(Boost 1.55.0 COMPONENTS program_options REQUIRED) add_executable(${PROJECT_NAME} BeezleBot.cpp settings.cpp ) +set_target_properties(${PROJECT_NAME} + PROPERTIES CXX_STANDARD 14 +) + target_link_libraries(${PROJECT_NAME} PRIVATE Boost::program_options @@ -16,8 +20,3 @@ target_link_libraries(${PROJECT_NAME} DokuWiki ) -target_compile_features(${PROJECT_NAME} - PRIVATE - cxx_std_17 -) -