CMake: Include private headers / tablegen files in generated Xcode projects.
authorJordan Rose <jordan_rose@apple.com>
Tue, 23 Oct 2012 21:36:55 +0000 (21:36 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 23 Oct 2012 21:36:55 +0000 (21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166503 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMProcessSources.cmake

index 0e410edc15fe995422b64ba434ab7aea517b9c4a..2cef6cfc3a30ec8e1f5aa265021c65e84fbe493a 100644 (file)
@@ -48,7 +48,7 @@ function(llvm_process_sources OUT_VAR)
     set( f ${CMAKE_CURRENT_SOURCE_DIR}/${s} )
     add_file_dependencies( ${f} ${TABLEGEN_OUTPUT} )
   endforeach(s)
     set( f ${CMAKE_CURRENT_SOURCE_DIR}/${s} )
     add_file_dependencies( ${f} ${TABLEGEN_OUTPUT} )
   endforeach(s)
-  if( MSVC_IDE )
+  if( MSVC_IDE OR XCODE )
     # This adds .td and .h files to the Visual Studio solution:
     # FIXME: Shall we handle *.def here?
     add_td_sources(sources)
     # This adds .td and .h files to the Visual Studio solution:
     # FIXME: Shall we handle *.def here?
     add_td_sources(sources)