mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
the public headers checker in kate_generate_public() has served its purpose
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
5b1de5f573
commit
a2dcf2c39f
1 changed files with 1 additions and 4 deletions
|
@ -22,14 +22,11 @@ macro(KATIE_GENERATE_PUBLIC PUBLIC_INCLUDES SUBDIR)
|
|||
string(TOLOWER ${pubheader} pubname)
|
||||
get_filename_component(pubname ${pubname} NAME_WE)
|
||||
set(pubout ${CMAKE_BINARY_DIR}/include/${SUBDIR}/${pubheader})
|
||||
set(pubcheck ${CMAKE_BINARY_DIR}/include/${SUBDIR}/${pubname}.h)
|
||||
if(NOT EXISTS ${pubout})
|
||||
file(WRITE ${pubout} "#include <${pubname}.h>\n")
|
||||
endif()
|
||||
if(NOT EXISTS ${pubcheck})
|
||||
katie_warning("Bogus public header: ${pubheader} (${pubcheck})")
|
||||
# qttestgui is exception because it requires explicit gui component linkage
|
||||
elseif(NOT "${pubname}" STREQUAL "qttestgui")
|
||||
if(NOT "${pubname}" STREQUAL "qttestgui")
|
||||
set(metadata "${metadata}#include <${SUBDIR}/${pubname}.h>\n")
|
||||
endif()
|
||||
endforeach(pubheader)
|
||||
|
|
Loading…
Add table
Reference in a new issue