[llvm] r200298 - [CMake] Let llvm_process_sources check not only *.cpp but also *.c.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jan 28 01:43:49 PST 2014
Author: chapuni
Date: Tue Jan 28 03:43:49 2014
New Revision: 200298
URL: http://llvm.org/viewvc/llvm-project?rev=200298&view=rev
Log:
[CMake] Let llvm_process_sources check not only *.cpp but also *.c.
Modified:
llvm/trunk/cmake/modules/LLVMProcessSources.cmake
Modified: llvm/trunk/cmake/modules/LLVMProcessSources.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMProcessSources.cmake?rev=200298&r1=200297&r2=200298&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMProcessSources.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMProcessSources.cmake Tue Jan 28 03:43:49 2014
@@ -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()
More information about the llvm-commits
mailing list