mirror of https://github.com/llvm/circt.git
[CMake] Update header install commands to match MLIRs
Update the `install` commands concerned with the CIRCT header files to match the MLIR style: one for `circt` and `circt-c` in the source tree, and one for `circt` and `circt-c` in the build tree. This only affects out-of-tree users of CIRCT and in the worst case provide additional header files than what they have seen so far.
This commit is contained in:
parent
6515ddcb70
commit
209c85d305
|
@ -381,7 +381,7 @@ if (CIRCT_INCLUDE_DOCS)
|
|||
add_subdirectory(docs)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY include/circt
|
||||
install(DIRECTORY include/circt include/circt-c
|
||||
DESTINATION include
|
||||
COMPONENT circt-headers
|
||||
FILES_MATCHING
|
||||
|
@ -393,18 +393,7 @@ install(DIRECTORY include/circt
|
|||
PATTERN "LICENSE.TXT"
|
||||
)
|
||||
|
||||
install(DIRECTORY include/circt-c
|
||||
DESTINATION include
|
||||
COMPONENT circt-headers
|
||||
FILES_MATCHING
|
||||
PATTERN "*.def"
|
||||
PATTERN "*.h"
|
||||
PATTERN "*.inc"
|
||||
PATTERN "*.td"
|
||||
PATTERN "LICENSE.TXT"
|
||||
)
|
||||
|
||||
install(DIRECTORY ${CIRCT_INCLUDE_DIR}/circt
|
||||
install(DIRECTORY ${CIRCT_INCLUDE_DIR}/circt ${CIRCT_INCLUDE_DIR}/circt-c
|
||||
DESTINATION include
|
||||
COMPONENT circt-headers
|
||||
FILES_MATCHING
|
||||
|
|
Loading…
Reference in New Issue