make use of katie_generate_obsolete() in katie_generate_public()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-01-20 23:10:03 +02:00
parent 91a8dacb98
commit f0dd1a59a6

View file

@ -120,8 +120,7 @@ endmacro()
macro(KATIE_GENERATE_PUBLIC PUBLIC_INCLUDES SUBDIR)
foreach(pubheader ${PUBLIC_INCLUDES})
string(TOLOWER ${pubheader} pubname)
set(pubout "${CMAKE_BINARY_DIR}/include/${SUBDIR}/${pubheader}")
katie_write_file("${pubout}" "#include <${pubname}.h>\n")
katie_generate_obsolete("${pubheader}" "${SUBDIR}" "${pubname}.h")
endforeach()
file(GLOB PUBLIC_LIST "${CMAKE_BINARY_DIR}/include/${SUBDIR}/*.h")