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
+
3
7
if (POLICY CMP0157 AND CMAKE_Swift_COMPILER_USE_OLD_DRIVER )
4
8
cmake_policy (SET CMP0157 OLD )
5
9
endif ()
@@ -16,15 +20,11 @@ if(NOT PROJECT_IS_TOP_LEVEL)
16
20
message (FATAL_ERROR "Swift StringProcessing must build as a standalone project" )
17
21
endif ()
18
22
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 REQUIRED )
27
+ find_package (SwiftCore )
28
28
29
29
include (GNUInstallDirs )
30
30
You can’t perform that action at this time.
0 commit comments