Files
swift-mirror/unittests/SwiftDemangle/CMakeLists.txt
Rintaro Ishizaki 9c9010e5b7 [CMake] Support Macros in Linux
For compiling codes required for macro support, we now need swiftc
compiler in the build machine.

Unlike Darwin OSes, where swiftCore runtime is guaranteed to be present
in /usr/lib, Linux doesn't have ABI stability and the stdlib of the
build machine is not at the specific location. So the built compiler
cannot relies on the shared object in the toolchain.
2023-08-24 17:04:15 +00:00

14 lines
330 B
CMake

if(TARGET swiftDemangle)
add_swift_unittest(SwiftDemangleTests IS_TARGET_TEST
DemangleTest.cpp
)
set_target_properties(SwiftDemangleTests
PROPERTIES BUILD_WITH_INSTALL_RPATH On INSTALL_RPATH "${SWIFT_LIBRARY_OUTPUT_INTDIR}"
)
target_link_libraries(SwiftDemangleTests
PRIVATE
swiftDemangle
)
endif()