diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-25 20:34:07 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-25 20:34:07 +0000 |
commit | bf5de3faf3af5f35ec635b62548d23b883183afd (patch) | |
tree | 40bf3bed00540a9edf28ce6a1a7c8810f64c64fc | |
parent | b8547e800f9553a72c2f3635ae2371692bd4411a (diff) |
CMake: Also include header files in target when the generator is 'XCode'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2eaedf530a..8ca44b8445 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,13 @@ macro(add_clang_library name) set(srcs ${ARGN}) - if(MSVC_IDE) + if(MSVC_IDE OR XCODE) file( GLOB_RECURSE headers *.h) set(srcs ${srcs} ${headers}) string( REGEX MATCHALL "/[^/]+" split_path ${CMAKE_CURRENT_SOURCE_DIR}) list( GET split_path -1 dir) file( GLOB_RECURSE headers ../../include/clang${dir}/*.h) set(srcs ${srcs} ${headers}) - endif(MSVC_IDE) + endif(MSVC_IDE OR XCODE) add_library( ${name} ${srcs} ) if( LLVM_COMMON_DEPENDS ) add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} ) |