summaryrefslogtreecommitdiff
path: root/cmake/modules/TableGen.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/TableGen.cmake')
-rw-r--r--cmake/modules/TableGen.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index b1e1549247..35f1422cc5 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -127,6 +127,8 @@ macro(add_tablegen target project)
endif()
if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
- install(TARGETS ${target} RUNTIME DESTINATION bin)
+ install(TARGETS ${target}
+ EXPORT LLVMExports
+ RUNTIME DESTINATION bin)
endif()
endmacro()