Skip to content

Commit

Permalink
feat: Include project_options without add_subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Aug 31, 2024
1 parent 4a89ab0 commit 2bb1544
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/sample_project_fetch_project_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ macro(fetch_project_options git_repository git_tag)
GIT_TAG ${git_tag}
GIT_SHALLOW true
GIT_SUBMODULES ""
SOURCE_SUBDIR this-directory-does-not-exist # Avoid add_subdirectory automatically
)
FetchContent_MakeAvailable(_sample_project_project_options)
include(${_sample_project_project_options_SOURCE_DIR}/src/Index.cmake)
include(${_sample_project_project_options_SOURCE_DIR}/src/DynamicProjectOptions.cmake)
endmacro()

Expand Down

0 comments on commit 2bb1544

Please sign in to comment.