-
Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathSwiftConfig.cmake.in
34 lines (25 loc) · 1.11 KB
/
SwiftConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file provides information and services to the final user.
@SWIFT_CONFIG_CODE@
set(SWIFT_VERSION_MAJOR @SWIFT_VERSION_MAJOR@)
set(SWIFT_VERSION_MINOR @SWIFT_VERSION_MINOR@)
set(SWIFT_VERSION_PATCH @SWIFT_VERSION_PATCHLEVEL@)
set(SWIFT_VERSION @SWIFT_VERSION@)
set(SWIFT_MAIN_SRC_DIR @SWIFT_SOURCE_DIR@)
set(SWIFT_INCLUDE_DIRS "@SWIFT_INCLUDE_DIRS@")
set(SWIFT_LIBRARY_DIRS "@SWIFT_LIBRARY_DIRS@")
# These variables are duplicated, but they must match the LLVM variables of the
# same name. The variables ending in "S" could some day become lists, and are
# preserved for convention and compatibility.
set(SWIFT_INCLUDE_DIR "@SWIFT_INCLUDE_DIRS@")
set(SWIFT_LIBRARY_DIR "@SWIFT_LIBRARY_DIRS@")
set(SWIFT_CMAKE_DIR "@SWIFT_CMAKE_DIR@")
set(SWIFT_BINARY_DIR "@SWIFT_BINARY_DIR@")
set(BOOTSTRAPPING_MODE "@BOOTSTRAPPING_MODE@")
set(CMARK_TARGETS_FILE @SWIFT_PATH_TO_CMARK_BUILD@/src/cmarkTargets.cmake)
if(NOT TARGET libcmark_static AND EXISTS ${CMARK_TARGETS_FILE})
include(${CMARK_TARGETS_FILE})
endif()
if(NOT TARGET swift)
set(SWIFT_EXPORTED_TARGETS "@SWIFT_CONFIG_EXPORTS@")
include("@SWIFT_EXPORTS_FILE@")
endif()