mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Add to readme FetchContent section to automatically turn off building tests and samples
This commit is contained in:
parent
5614b96e5a
commit
90945c5c95
@ -1133,6 +1133,8 @@ PROJECT(myproject)
|
|||||||
|
|
||||||
# fetch latest argparse
|
# fetch latest argparse
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
set(ARGPARSE_BUILD_TESTS OFF CACHE INTERNAL "Turn off building argparse tests")
|
||||||
|
set(ARGPARSE_BUILD_SAMPLES OFF CACHE INTERNAL "Turn off building argparse samples")
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
argparse
|
argparse
|
||||||
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
|
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
|
||||||
|
Loading…
Reference in New Issue
Block a user