Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMake] enable install C API objects #8077

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmake/modules/AddCIRCT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ function(add_circt_public_c_api_library name)
add_mlir_public_c_api_library(${ARGV} DISABLE_INSTALL)
add_dependencies(circt-capi ${name})
add_circt_library_install(${name})
if(TARGET "obj.${name}" AND MLIR_INSTALL_AGGREGATE_OBJECTS)
add_circt_library_install(obj.${name})
endif()
endfunction()

# Additional parameters are forwarded to tablegen.
Expand Down
3 changes: 3 additions & 0 deletions lib/Bindings/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ set(PYTHON_BINDINGS_SOURCES
SeqModule.cpp
SupportModule.cpp
SVModule.cpp
# Headers must be included explicitly so they are installed.
CIRCTModules.h
PybindUtils.h
)

set(PYTHON_BINDINGS_LINK_LIBS
Expand Down
Loading