summaryrefslogtreecommitdiff
path: root/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
commit286d7d83128b591dc11cb1f1b59f13864270b812 (patch)
treed5f11d3312a108e32a8a118e7363dbe71fcea146 /cmake
parent57d68595e62de0f102a6d0c05ab9b3f854225f09 (diff)
downloadllvm-286d7d83128b591dc11cb1f1b59f13864270b812.tar.gz
llvm-286d7d83128b591dc11cb1f1b59f13864270b812.tar.bz2
llvm-286d7d83128b591dc11cb1f1b59f13864270b812.tar.xz
[CMake] Let llvm_process_sources check not only *.cpp but also *.c.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LLVMProcessSources.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/LLVMProcessSources.cmake b/cmake/modules/LLVMProcessSources.cmake
index 2d88abfd75..ccc22a8027 100644
--- a/cmake/modules/LLVMProcessSources.cmake
+++ b/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()