Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCLUDE_FROM_ALL seems to have no effect #495

Open
denniskb opened this issue Aug 12, 2023 · 2 comments
Open

EXCLUDE_FROM_ALL seems to have no effect #495

denniskb opened this issue Aug 12, 2023 · 2 comments

Comments

@denniskb
Copy link

Either EXCLUDE_FROM_ALL has no effect, or I'm using it wrong.

include(cmake/CPM.cmake)
CPMAddPackage(
NAME googletest
GITHUB_REPOSITORY google/googletest
GIT_TAG v1.13.0
VERSION 1.13.0
OPTIONS "INSTALL_GTEST OFF" "BUILD_GMOCK OFF" "gtest_disable_pthreads ON"
EXCLUDE_FROM_ALL=YES)

Yet, google test still gets built when I run make.

@denniskb
Copy link
Author

DOWNLOAD_ONLY is also ignored.

@ClausKlein
Copy link
Contributor

ClausKlein commented Dec 7, 2023

IMHO the OPTIONS should be always the last argument.

Please try EXCLUDE_FROM_ALL YES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants