Fixed incorrect handling of CMake options.

This commit is contained in:
Patrick Lühne 2017-06-18 15:04:45 +02:00
parent b7cd875f0e
commit bda57b2fe7
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -4,8 +4,8 @@ project(anthem CXX)
option(ANTHEM_BUILD_TESTS "Build unit tests" OFF) option(ANTHEM_BUILD_TESTS "Build unit tests" OFF)
option(ANTHEM_BUILD_STATIC "Build static binaries" OFF) option(ANTHEM_BUILD_STATIC "Build static binaries" OFF)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic") set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "-g") set(CMAKE_CXX_FLAGS_DEBUG "-g ${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)