Add to readme FetchContent section to automatically turn off building tests and samples

This commit is contained in:
cobyj33 2023-10-25 19:12:11 -05:00
parent 5614b96e5a
commit 90945c5c95

View File

@ -1133,6 +1133,8 @@ PROJECT(myproject)
# fetch latest argparse
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(
argparse
GIT_REPOSITORY https://github.com/p-ranav/argparse.git