Files
swift-mirror/lib/SwiftDemangle/CMakeLists.txt
Daniel Rodríguez Troitiño a184e9e6a9 [cmake] Install runtime swiftDemangle pieces.
In DLL environments (Windows) a library RUNTIME piece will be the
DLL itself (while the .lib will be the LIBRARY piece). Adding a RUNTIME
destination install swiftDemangle.dll correctly in its expected place.

This was avoiding some tests from running in the Windows CI machines. It
should also allow people use tools like swift-demangle.
2019-10-22 17:53:32 -07:00

20 lines
541 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)
add_dependencies(compiler swiftDemangle)
swift_install_in_component(TARGETS swiftDemangle
RUNTIME
DESTINATION "bin"
COMPONENT compiler
LIBRARY
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
COMPONENT compiler
ARCHIVE
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
COMPONENT compiler)