File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.28)
3
3
project (swift-inspect
4
4
LANGUAGES C CXX Swift )
5
5
6
+ include (FetchContent )
7
+
6
8
# Set C++ standard
7
9
set (CMAKE_CXX_STANDARD 17 )
8
10
set (CMAKE_CXX_STANDARD_REQUIRED ON )
@@ -12,7 +14,15 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
12
14
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
13
15
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
14
16
15
- find_package (ArgumentParser CONFIG REQUIRED )
17
+ FetchContent_Declare (ArgumentParser
18
+ GIT_REPOSITORY https://github.com/apple/swift-argument-parser
19
+ GIT_TAG 1.5.0
20
+ GIT_SHALLOW TRUE
21
+ EXCLUDE_FROM_ALL
22
+ FIND_PACKAGE_ARGS CONFIG )
23
+ set (BUILD_TESTING OFF CACHE INTERNAL "skip building tests" )
24
+ set (BUILD_EXAMPLES OFF CACHE INTERNAL "skip building examples" )
25
+ FetchContent_MakeAvailable (ArgumentParser )
16
26
17
27
add_library (SymbolicationShims INTERFACE )
18
28
target_include_directories (SymbolicationShims INTERFACE
You can’t perform that action at this time.
0 commit comments