We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7108f6 commit 3acd471Copy full SHA for 3acd471
lib/CMakeLists.txt
@@ -61,10 +61,20 @@ if(NOT USE_SYSTEM_CPR)
61
endif()
62
63
if(NOT USE_SYSTEM_ARGS)
64
- # it's quite simple dealing with the args library directly from CMake
65
- add_library(args INTERFACE)
66
- target_sources(args INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/args/args.hxx")
67
- target_include_directories(args INTERFACE args)
+ function(import_args)
+ set(ARGS_MAIN_PROJECT OFF)
+ set(ARGS_BUILD_EXAMPLE OFF)
+ set(ARGS_BUILD_UNITTESTS OFF)
68
+
69
+ include(FetchContent)
70
+ FetchContent_Declare(args
71
+ GIT_REPOSITORY https://github.com/Taywee/args
72
+ GIT_TAG 6.4.6
73
+ )
74
+ FetchContent_MakeAvailable(args)
75
+ endfunction()
76
77
+ import_args()
78
79
80
# Google Test framework
lib/args
0 commit comments