[cfe-commits] r67703 - /cfe/trunk/CMakeLists.txt
Ted Kremenek
kremenek at apple.com
Wed Mar 25 13:34:07 PDT 2009
Author: kremenek
Date: Wed Mar 25 15:34:07 2009
New Revision: 67703
URL: http://llvm.org/viewvc/llvm-project?rev=67703&view=rev
Log:
CMake: Also include header files in target when the generator is 'XCode'.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=67703&r1=67702&r2=67703&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Wed Mar 25 15:34:07 2009
@@ -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} )
More information about the cfe-commits
mailing list