From: Christoph Egger Date: Wed, 14 May 2014 09:12:46 +0000 (+0200) Subject: Only use cmake 2.8.9 subset X-Git-Tag: v0.1~224 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=40098ecbfc5fc743f1535af8d42f84b221ee802b;p=frida%2Ffrida.git Only use cmake 2.8.9 subset --- 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)