From e04299bd301961bd421570570cd3248e272c4edd Mon Sep 17 00:00:00 2001 From: jackb-p Date: Sun, 31 Jul 2016 21:13:38 +0100 Subject: [PATCH] Support lower CMake versions --- TriviaBot/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TriviaBot/CMakeLists.txt b/TriviaBot/CMakeLists.txt index 8168ecd..796c160 100644 --- a/TriviaBot/CMakeLists.txt +++ b/TriviaBot/CMakeLists.txt @@ -14,8 +14,8 @@ file(GLOB_RECURSE sources bot/*.cpp bot/*.hpp) # add the data to the target, so it becomes visible in some IDE add_executable(TriviaBot ${sources}) -# just for example add some compiler flags -target_compile_options(TriviaBot PUBLIC -std=c++14 -Wall -Wfloat-conversion -g) +# add some compiler flags +set (CMAKE_CXX_FLAGS "-std=c++14 -Wall -Wfloat-conversion ${CMAKE_CXX_FLAGS}") ############################################################################### ## dependencies ###############################################################