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)
33project (swift-inspect
44 LANGUAGES C CXX Swift)
55
6+ include (FetchContent)
7+
68# Set C++ standard
79set (CMAKE_CXX_STANDARD 17)
810set (CMAKE_CXX_STANDARD_REQUIRED ON )
@@ -12,7 +14,15 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
1214set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
1315set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
1416
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)
1626
1727add_library (SymbolicationShims INTERFACE )
1828target_include_directories (SymbolicationShims INTERFACE
You can’t perform that action at this time.
0 commit comments