EXCLUDE_FROM_ALL seems to have no effect
denniskb opened this issue · comments
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
.
DOWNLOAD_ONLY
is also ignored.
IMHO the OPTIONS
should be always the last argument.
Please try EXCLUDE_FROM_ALL YES