CMake: Fix BuildMetalib on CMake 3.0.2
CMake now tests out correctly on 3.0.2 again.
This commit is contained in:
parent
f696bfbfe2
commit
b8fa692e2f
|
|
@ -131,6 +131,14 @@ function(add_component_library target_name)
|
|||
endforeach()
|
||||
|
||||
if(BUILD_METALIBS)
|
||||
# CMake 3.0.2 doesn't like .I/.N/.T files! We let it know that they're only
|
||||
# headers.
|
||||
foreach(source ${sources})
|
||||
if(source MATCHES "\\.[INT]$")
|
||||
set_source_files_properties(${source} PROPERTIES HEADER_FILE_ONLY ON)
|
||||
endif()
|
||||
endforeach(source)
|
||||
|
||||
add_library("${target_name}" OBJECT ${sources})
|
||||
else()
|
||||
add_library("${target_name}" ${sources})
|
||||
|
|
|
|||
Loading…
Reference in New Issue