p-ranav / argparse

Argument Parser for Modern C++
MIT License
2.72k stars 250 forks source link

Add to readme cmake FetchContent section #293

Closed cobyj33 closed 1 year ago

cobyj33 commented 1 year ago

It's imporant to note that FetchContent will automatically build all of the argparse tests and samples when including it with FetchContent, since the root CMakeLists.txt file sets these options as ON by default.

Generally, users of the library wouldn't want tests and samples to be built alongside a library dependency, so we could include these two more lines in the README to show how to disable building the tests and samples by default.