summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/LLVMProcessSources.cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-01-28 09:43:49 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-01-28 09:43:49 +0000
commitdb441f68b6847fd6420e5f6dd76a4a511ed77756 (patch)
tree3376967234776cb14f6179617444d4c53d05cb92 /llvm/cmake/modules/LLVMProcessSources.cmake
parent0ff6f4902862a319790472a7b50b9e0ac80ca6ff (diff)
downloadbcm5719-llvm-db441f68b6847fd6420e5f6dd76a4a511ed77756.tar.gz
bcm5719-llvm-db441f68b6847fd6420e5f6dd76a4a511ed77756.zip
[CMake] Let llvm_process_sources check not only *.cpp but also *.c.
llvm-svn: 200298
Diffstat (limited to 'llvm/cmake/modules/LLVMProcessSources.cmake')
-rw-r--r--llvm/cmake/modules/LLVMProcessSources.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/LLVMProcessSources.cmake b/llvm/cmake/modules/LLVMProcessSources.cmake
index 2d88abfd752..ccc22a80274 100644
--- a/llvm/cmake/modules/LLVMProcessSources.cmake
+++ b/llvm/cmake/modules/LLVMProcessSources.cmake
@@ -82,7 +82,7 @@ endfunction(llvm_process_sources)
function(llvm_check_source_file_list)
set(listed ${ARGN})
- file(GLOB globbed *.cpp)
+ file(GLOB globbed *.c *.cpp)
foreach(g ${globbed})
get_filename_component(fn ${g} NAME)
list(FIND LLVM_OPTIONAL_SOURCES ${fn} idx)
@@ -90,7 +90,7 @@ function(llvm_check_source_file_list)
list(FIND listed ${fn} idx)
if( idx LESS 0 )
message(SEND_ERROR "Found unknown source file ${g}
-Please update ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt\n")
+Please update ${CMAKE_CURRENT_LIST_FILE}\n")
endif()
endif()
endforeach()
OpenPOWER on IntegriCloud