File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ if ("${Enzyme_TABLEGEN_EXE}" STREQUAL "")
7
7
endif ()
8
8
9
9
get_target_property (TBL_LINKED_LIBS LLVMSupport INTERFACE_LINK_LIBRARIES)
10
+ if (NOT TBL_LINKED_LIBS)
11
+ else ()
10
12
list (REMOVE_ITEM TBL_LINKED_LIBS "ZLIB::ZLIB" )
11
13
set_property (TARGET LLVMSupport PROPERTY INTERFACE_LINK_LIBRARIES ${TBL_LINKED_LIBS} )
14
+ endif ()
12
15
13
16
function (enzyme_tablegen ofn)
14
17
if (${LLVM_VERSION_MAJOR} GREATER 11)
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ add_tablegen(enzyme-tblgen Enzyme
10
10
enzyme-tblgen.cpp
11
11
)
12
12
13
+ get_target_property (TBL_LINKED_LIBS LLVMSupport INTERFACE_LINK_LIBRARIES)
14
+ if (NOT TBL_LINKED_LIBS)
15
+ target_link_libraries (enzyme-tblgen PUBLIC "stdc++" )
16
+ endif ()
17
+
13
18
set_target_properties (enzyme-tblgen PROPERTIES FOLDER "Tablegenning" )
14
19
target_link_libraries (enzyme-tblgen
15
20
PRIVATE )
You can’t perform that action at this time.
0 commit comments