DocBook.cmake (brlcad-7.32.0.tar.bz2) | : | DocBook.cmake (brlcad-7.32.2.tar.bz2) | ||
---|---|---|---|---|
# D O C B O O K . C M A K E | # D O C B O O K . C M A K E | |||
# BRL-CAD | # BRL-CAD | |||
# | # | |||
# Copyright (c) 2011-2020 United States Government as represented by | # Copyright (c) 2011-2021 United States Government as represented by | |||
# the U.S. Army Research Laboratory. | # the U.S. Army Research Laboratory. | |||
# | # | |||
# Redistribution and use in source and binary forms, with or without | # Redistribution and use in source and binary forms, with or without | |||
# modification, are permitted provided that the following conditions | # modification, are permitted provided that the following conditions | |||
# are met: | # are met: | |||
# | # | |||
# 1. Redistributions of source code must retain the above copyright | # 1. Redistributions of source code must retain the above copyright | |||
# notice, this list of conditions and the following disclaimer. | # notice, this list of conditions and the following disclaimer. | |||
# | # | |||
# 2. Redistributions in binary form must reproduce the above | # 2. Redistributions in binary form must reproduce the above | |||
skipping to change at line 252 | skipping to change at line 252 | |||
endif(NOT "${IN_LIST}" STREQUAL "-1") | endif(NOT "${IN_LIST}" STREQUAL "-1") | |||
endforeach(fmt ${fmts}) | endforeach(fmt ${fmts}) | |||
set(all_outfiles ${all_outfiles} ${outputs}) | set(all_outfiles ${all_outfiles} ${outputs}) | |||
# As long as we're outputting *something*, we have a target to produce | # As long as we're outputting *something*, we have a target to produce | |||
if(NOT "${outputs}" STREQUAL "") | if(NOT "${outputs}" STREQUAL "") | |||
string(MD5 path_md5 "${CMAKE_CURRENT_SOURCE_DIR}/${fname}") | string(MD5 path_md5 "${CMAKE_CURRENT_SOURCE_DIR}/${fname}") | |||
configure_file(${BRLCAD_CMAKE_DIR}/docbook.cmake.in ${CMAKE_CURRENT_BINAR Y_DIR}/dbp_${fname_root}-${path_md5}.cmake @ONLY) | configure_file(${BRLCAD_CMAKE_DIR}/docbook.cmake.in ${CMAKE_CURRENT_BINAR Y_DIR}/dbp_${fname_root}-${path_md5}.cmake @ONLY) | |||
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/dbp_${fname_root}-${path_md5}.cmak e") | ||||
add_custom_command( | add_custom_command( | |||
OUTPUT ${outputs} | OUTPUT ${outputs} | |||
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/dbp_${fname_roo t}-${path_md5}.cmake | COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/dbp_${fname_roo t}-${path_md5}.cmake | |||
DEPENDS ${fname} ${XMLLINT_EXECUTABLE_TARGET} ${XSLTPROC_EXECUTABLE_TAR GET} ${DOCBOOK_RESOURCE_FILES} ${deps_list} | DEPENDS ${fname} ${XMLLINT_EXECUTABLE_TARGET} ${XSLTPROC_EXECUTABLE_TAR GET} ${DOCBOOK_RESOURCE_FILES} ${deps_list} | |||
) | ) | |||
# For now, we'll skip generating per-input-file build targets - that's no t normally how | # For now, we'll skip generating per-input-file build targets - that's no t normally how | |||
# the docbook targets are built. | # the docbook targets are built. | |||
#add_custom_target(docbook-${fname_root}-${path_md5} DEPENDS ${outputs}) | #add_custom_target(docbook-${fname_root}-${path_md5} DEPENDS ${outputs}) | |||
#set_target_properties(docbook-${fname_root}-${path_md5} PROPERTIES FOLDE R "DocBook") | #set_target_properties(docbook-${fname_root}-${path_md5} PROPERTIES FOLDE R "DocBook") | |||
#if (TARGET brlcad_css) | #if (TARGET brlcad_css) | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |