Skip to content

Disable test_* generation with FetchContent #1580

Answered by amalgamat
mvitorovic asked this question in Q&A
Discussion options

You must be logged in to vote

set options before FetchContent. Example (diasabled everything except static library compilation and strict iso )

option(JSONCPP_WITH_TESTS "Compile and (for jsoncpp_check) run JsonCpp test executables" OFF)
option(JSONCPP_WITH_POST_BUILD_UNITTEST "Automatically run unit-tests as a post build step" OFF)
option(JSONCPP_WITH_WARNING_AS_ERROR "Force compilation to fail if a warning occurs" OFF)
option(JSONCPP_WITH_STRICT_ISO "Issue all the warnings demanded by strict ISO C and ISO C++" ON)
option(JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" OFF)
option(JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" OFF)
option(JSONCPP_WITH_EXAMPLE "Compile JsonCpp ex…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mvitorovic
Comment options

@mvitorovic
Comment options

Answer selected by mvitorovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants