From b9b987490b6558529cb2fc0b8c1839daaafe434a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sun, 18 Jun 2017 15:02:03 +0200 Subject: [PATCH] Fixed incorrect CMake option handling. --- CMakeLists.txt | 4 ++-- lib/pddlparse/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52c44ec..75620dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,8 @@ option(PLASP_BUILD_TESTS "Build unit tests" OFF) find_package(Boost 1.55.0 COMPONENTS program_options iostreams system REQUIRED) -set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Werror") -set(CMAKE_CXX_FLAGS_DEBUG "-g") +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Werror ${CMAKE_CXX_FLAGS}") +set(CMAKE_CXX_FLAGS_DEBUG "-g ${CMAKE_CXX_FLAGS_DEBUG}") set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/lib/pddlparse/CMakeLists.txt b/lib/pddlparse/CMakeLists.txt index 1f5ced9..60b674a 100644 --- a/lib/pddlparse/CMakeLists.txt +++ b/lib/pddlparse/CMakeLists.txt @@ -3,8 +3,8 @@ project(pddlparse) option(PDDLPARSE_BUILD_TESTS "Build unit tests" OFF) -set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Werror") -set(CMAKE_CXX_FLAGS_DEBUG "-g") +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Werror ${CMAKE_CXX_FLAGS}") +set(CMAKE_CXX_FLAGS_DEBUG "-g ${CMAKE_CXX_FLAGS_DEBUG}") set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON)