Skip to content

Commit 029c876

Browse files
authored
Merge pull request #81556 from compnerd/required-core
Runtimes: make `SwiftCore` search `REQUIRED`
2 parents f57e2d7 + a81dbe8 commit 029c876

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Runtimes/Supplemental/StringProcessing/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
cmake_minimum_required(VERSION 3.29)
22

3-
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
4-
5-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake/modules")
6-
73
if(POLICY CMP0157 AND CMAKE_Swift_COMPILER_USE_OLD_DRIVER)
84
cmake_policy(SET CMP0157 OLD)
95
endif()
@@ -20,11 +16,15 @@ if(NOT PROJECT_IS_TOP_LEVEL)
2016
message(FATAL_ERROR "Swift StringProcessing must build as a standalone project")
2117
endif()
2218

19+
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
20+
21+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake/modules")
22+
2323
set(${PROJECT_NAME}_SWIFTC_SOURCE_DIR
2424
"${PROJECT_SOURCE_DIR}/../../../"
2525
CACHE FILEPATH "Path to the root source directory of the Swift compiler")
2626

27-
find_package(SwiftCore)
27+
find_package(SwiftCore REQUIRED)
2828

2929
include(GNUInstallDirs)
3030

0 commit comments

Comments
 (0)