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)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits