Skip to content

Commit e8645f3

Browse files
author
Chris Bieneman
committed
[CMake] A few fixups to the Swift CMake package generation
I messed up a few of the variable substitutions. This should get them all correct.
1 parent 89b038e commit e8645f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/modules/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export(TARGETS ${SWIFT_CONFIG_EXPORTS} FILE ${SWIFT_EXPORTS_FILE})
1111

1212

1313
set(SWIFT_INCLUDE_DIRS ${SWIFT_INCLUDE_DIR} ${SWIFT_MAIN_INCLUDE_DIR})
14-
set(SWIFT_LIBRARY_DIRS ${SWIFT_LIBRARY_DIR})
14+
set(SWIFT_LIBRARY_DIRS ${SWIFT_LIBRARY_OUTPUT_INTDIR})
1515

1616
configure_file(
1717
SwiftConfig.cmake.in

cmake/modules/SwiftConfig.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
@SWIFT_CONFIG_CODE@
44

55
set(SWIFT_VERSION @SWIFT_VERSION@)
6-
set(SWIFT_MAIN_SRC_DIR @SWIFT_MAIN_SRC_DIR@)
6+
set(SWIFT_MAIN_SRC_DIR @SWIFT_SOURCE_DIR@)
77

88
set(SWIFT_INCLUDE_DIRS "@SWIFT_INCLUDE_DIR@")
99
set(SWIFT_LIBRARY_DIRS "@SWIFT_CONFIG_LIBRARY_DIRS@")
1010

1111
# These variables are duplicated, but they must match the LLVM variables of the
1212
# same name. The variables ending in "S" could some day become lists, and are
1313
# preserved for convention and compatibility.
14-
set(SWIFT_INCLUDE_DIR "@SWIFT_INCLUDE_DIR@")
14+
set(SWIFT_INCLUDE_DIR "@SWIFT_INCLUDE_DIRS@")
1515
set(SWIFT_LIBRARY_DIR "@SWIFT_CONFIG_LIBRARY_DIRS@")
1616

1717
set(SWIFT_CMAKE_DIR "@SWIFT_CMAKE_DIR@")

0 commit comments

Comments
 (0)