From 40098ecbfc5fc743f1535af8d42f84b221ee802b Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 14 May 2014 11:12:46 +0200 Subject: [PATCH] Only use cmake 2.8.9 subset --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1ef103..4e3f16d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,15 +11,16 @@ find_package(Qt5 CONFIG REQUIRED Widgets Gui) find_package(PkgConfig) pkg_check_modules(LOG4CXX REQUIRED liblog4cxx) -add_compile_options(${LOG4CXX_CFLAGS}) +#add_compile_options(${LOG4CXX_CFLAGS}) +add_definitions(${LOG4CXX_CFLAGS}) execute_process(COMMAND llvm-config-3.4 --cflags OUTPUT_VARIABLE LLVM_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND llvm-config-3.4 --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND llvm-config-3.4 --libs OUTPUT_VARIABLE LLVM_LIBS OUTPUT_STRIP_TRAILING_WHITESPACE) separate_arguments(LLVM_CFLAGS) -add_compile_options(${LLVM_CFLAGS}) -add_compile_options(-std=c++11 -Wall) +add_definitions(${LLVM_CFLAGS}) +add_definitions(-std=c++11 -Wall) separate_arguments(LLVM_LDFLAGS) separate_arguments(LLVM_LIBS) -- 2.39.5