Merge pull request #293 from cobyj33/cobyj33-readme-fetch-conent-disable-testing

Add to readme cmake FetchContent section
This commit is contained in:
Pranav 2023-10-25 19:55:21 -05:00 committed by GitHub
commit 31fb9e0336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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