Files
swift-mirror/stdlib/private/SwiftReflectionTest/CMakeLists.txt
Michael Gottesman 0258813113 Do not build SwiftReflectionTest when we are not including tests.
This avoids a cmake warning.
2016-07-19 13:38:36 -07:00

17 lines
541 B
CMake

if (SWIFT_INCLUDE_TESTS)
add_swift_library(swiftSwiftReflectionTest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
SwiftReflectionTest.swift
SWIFT_MODULE_DEPENDS Darwin
INSTALL_IN_COMPONENT stdlib-experimental)
foreach(SDK ${SWIFT_SDKS})
foreach(ARCH ${SWIFT_SDK_${SDK}_ARCHITECTURES})
set(VARIANT_SUFFIX "-${SWIFT_SDK_${SDK}_LIB_SUBDIR}-${ARCH}")
add_dependencies(
"swiftSwiftReflectionTest${VARIANT_SUFFIX}"
"swift-reflection-test${VARIANT_SUFFIX}")
endforeach()
endforeach()
endif()