Skip to content

Commit 32bb0d3

Browse files
maerhartyoungar
andauthored
[RTGTest] Fix CMake flag propagation for downstream (#8317)
Co-authored-by: Andrew Young <[email protected]>
1 parent 2b50f8a commit 32bb0d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Bindings/Python/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ declare_mlir_python_extension(CIRCTBindingsPythonExtension
7575
nanobind
7676
)
7777

78+
if (CIRCT_INCLUDE_TESTS)
79+
target_compile_definitions(CIRCTBindingsPythonExtension INTERFACE CIRCT_INCLUDE_TESTS)
80+
endif()
81+
7882
add_dependencies(CIRCTBindingsPythonExtension circt-headers)
7983

8084
################################################################################

0 commit comments

Comments
 (0)