Skip to content

BUILD_ONLY not works in default #3431

Answered by taoseng
taoseng asked this question in Q&A
May 23, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I use this project by cmake's FetchContent instead of command line. BUILD_ONLY is a cache variable in this project.
if i use this by force ,it works:

SET(BUILD_ONLY "s3" CACHE STRING "force override" FORCE)
FetchContent_Declare(
       awsSdkCpp 
        GIT_REPOSITORY  ${GIT_REPOSITORY}
        GIT_TAG         ${GIT_TAG}
        GIT_SHALLOW     TRUE
)
FetchContent_MakeAvailable(awsSdkCpp)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by sbiscigl
@sbiscigl
Comment options

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