File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Runtimes/Supplemental/StringProcessing Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.29 )
2
2
3
- set (CMAKE_POSITION_INDEPENDENT_CODE YES )
4
-
5
- list (APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR} /../cmake/modules" )
6
-
7
3
if (POLICY CMP0157 AND CMAKE_Swift_COMPILER_USE_OLD_DRIVER )
8
4
cmake_policy (SET CMP0157 OLD )
9
5
endif ()
@@ -20,11 +16,15 @@ if(NOT PROJECT_IS_TOP_LEVEL)
20
16
message (FATAL_ERROR "Swift StringProcessing must build as a standalone project" )
21
17
endif ()
22
18
19
+ set (CMAKE_POSITION_INDEPENDENT_CODE YES )
20
+
21
+ list (APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR} /../cmake/modules" )
22
+
23
23
set (${PROJECT_NAME} _SWIFTC_SOURCE_DIR
24
24
"${PROJECT_SOURCE_DIR} /../../../"
25
25
CACHE FILEPATH "Path to the root source directory of the Swift compiler" )
26
26
27
- find_package (SwiftCore )
27
+ find_package (SwiftCore REQUIRED )
28
28
29
29
include (GNUInstallDirs )
30
30
You can’t perform that action at this time.
0 commit comments