Files
swift-mirror/lib/SwiftDemangle/CMakeLists.txt
Alex Langford 3d9a28925b [CMake] Modify swift_install_in_component to support cmake install components
CMake supports the notion of installation components. Right now we have some
custom code for supporting swift components. I think that for installation
purposes, it would be nice to use the CMake component system.

This should be a non-functional change. We should still only be generating
install rules for targets and files in components we want to install, and we
still use the install ninja target to install everything.
2019-04-19 14:06:11 -07:00

13 lines
487 B
CMake

add_swift_host_library(swiftDemangle SHARED
SwiftDemangle.cpp
MangleHack.cpp)
target_compile_definitions(swiftDemangle PRIVATE
LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1)
target_link_libraries(swiftDemangle PRIVATE
swiftDemangling)
swift_install_in_component(TARGETS swiftDemangle
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
COMPONENT compiler)