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)