Simplify CMake script

This commit is contained in:
Richard Berger
2017-08-20 10:49:30 -04:00
parent c9d41dbb47
commit aef2416ece
2 changed files with 3 additions and 13 deletions

View File

@ -87,13 +87,8 @@ endfunction(RegisterStyles)
function(RemovePackageHeader headers pkg_header)
get_property(hlist GLOBAL PROPERTY ${headers})
list(FIND hlist ${pkg_header} idx)
if(NOT (idx LESS 0))
list(REMOVE_AT hlist ${idx})
#message("Ignoring ${pkg_header}...")
set_property(GLOBAL PROPERTY ${headers} "${hlist}")
endif()
list(REMOVE_ITEM hlist ${pkg_header})
set_property(GLOBAL PROPERTY ${headers} "${hlist}")
endfunction(RemovePackageHeader)
function(DetectAndRemovePackageHeader fname)