Skip to content

Commit f2d2dd9

Browse files
committed
Add a workaround for triggering the use of CINDEX_LINKAGE
1 parent 0db7431 commit f2d2dd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/Interpreter/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ else()
133133
LINK_LIBS
134134
${link_libs}
135135
)
136+
137+
target_compile_definitions(clangCppInterOp PUBLIC "_CINDEX_LIB_") # workaround for the use of `CINDEX_LINKAGE`
136138
endif()
137139

138140
string(REPLACE ";" "\;" _VER CPPINTEROP_VERSION)

0 commit comments

Comments
 (0)