[cfe-commits] r125503 - in /cfe/trunk: include/clang/Basic/ include/clang/Driver/ include/clang/Frontend/ include/clang/StaticAnalyzer/Checkers/ include/clang/StaticAnalyzer/Core/ include/clang/StaticAnalyzer/Core/PathSensitive/ include/clang/StaticAnalyzer/Frontend/ lib/Driver/ lib/Frontend/ lib/FrontendTool/ lib/StaticAnalyzer/Checkers/ lib/StaticAnalyzer/Core/ lib/StaticAnalyzer/Frontend/ test/Analysis/

Argyrios Kyrtzidis kyrtzidis at apple.com
Mon Feb 14 11:12:56 PST 2011


Hi Óscar,

Could you take a look at having -I ${CMAKE_CURRENT_BINARY_DIR} included by default in the CMAKE_CXX_FLAGS, or offer hints how to do it ?

-Argiris

On Feb 14, 2011, at 10:13 AM, Argyrios Kyrtzidis wrote:

> Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CMakeLists.txt?rev=125503&r1=125502&r2=125503&view=diff
> ==============================================================================
> --- cfe/trunk/lib/StaticAnalyzer/Checkers/CMakeLists.txt (original)
> +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CMakeLists.txt Mon Feb 14 12:13:31 2011
> @@ -1,3 +1,14 @@
> +set(LLVM_TARGET_DEFINITIONS Checkers.td)
> +tablegen(Checkers.inc
> +         -gen-clang-sa-checkers
> +         -I ${CMAKE_CURRENT_SOURCE_DIR}/../../../include)
> +add_custom_target(ClangSACheckers
> +  DEPENDS Checkers.inc)
> +
> +# So 'Checkers.inc' can be included from the cmake build directory.
> +# FIXME: Someone more familiar with cmake should enable this for all of LLVM.
> +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I ${CMAKE_CURRENT_BINARY_DIR}")
> +
> set(LLVM_USED_LIBS clangBasic clangAST)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110214/e24b55a2/attachment.html>


More information about the cfe-commits mailing list