mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
[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
This commit is contained in:
parent
57d68595e6
commit
286d7d8312
@ -82,7 +82,7 @@ endfunction(llvm_process_sources)
|
|||||||
|
|
||||||
function(llvm_check_source_file_list)
|
function(llvm_check_source_file_list)
|
||||||
set(listed ${ARGN})
|
set(listed ${ARGN})
|
||||||
file(GLOB globbed *.cpp)
|
file(GLOB globbed *.c *.cpp)
|
||||||
foreach(g ${globbed})
|
foreach(g ${globbed})
|
||||||
get_filename_component(fn ${g} NAME)
|
get_filename_component(fn ${g} NAME)
|
||||||
list(FIND LLVM_OPTIONAL_SOURCES ${fn} idx)
|
list(FIND LLVM_OPTIONAL_SOURCES ${fn} idx)
|
||||||
@ -90,7 +90,7 @@ function(llvm_check_source_file_list)
|
|||||||
list(FIND listed ${fn} idx)
|
list(FIND listed ${fn} idx)
|
||||||
if( idx LESS 0 )
|
if( idx LESS 0 )
|
||||||
message(SEND_ERROR "Found unknown source file ${g}
|
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()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user