mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
write new lines to files from build macros
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3bfdf41a4b
commit
9f3d688f5e
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ macro(KATIE_GENERATE_PUBLIC PUBLIC_INCLUDES SUBDIR)
|
|||
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>")
|
||||
file(WRITE ${pubout} "#include <${pubname}.h>\n")
|
||||
endif()
|
||||
if(NOT EXISTS ${pubcheck})
|
||||
message(AUTHOR_WARNING "Bogus public header: ${pubheader} (${pubcheck})")
|
||||
|
@ -63,7 +63,7 @@ endmacro()
|
|||
macro(KATIE_GENERATE_OBSOLETE OBSOLETE_INCLUDE SUBDIR REDIRECT)
|
||||
set(pubout ${CMAKE_BINARY_DIR}/include/${SUBDIR}/${OBSOLETE_INCLUDE})
|
||||
if(NOT EXISTS "${pubout}")
|
||||
file(WRITE "${pubout}" "#include <${SUBDIR}/${REDIRECT}>")
|
||||
file(WRITE "${pubout}" "#include <${SUBDIR}/${REDIRECT}>\n")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue