Skip to content

Comments

Fixes that allows use project as submodule#815

Open
ZFail wants to merge 2 commits intogithubuser0xFFFF:masterfrom
ZFail:use-as-submodule
Open

Fixes that allows use project as submodule#815
ZFail wants to merge 2 commits intogithubuser0xFFFF:masterfrom
ZFail:use-as-submodule

Conversation

@ZFail
Copy link

@ZFail ZFail commented Feb 19, 2026

For using this project as submodule we need some fixes

  • Move CMAKE_MODULE_PATH up, because it needs later when include Versioning.cmake
  • Versioning don't work, if we use project as submodule, because git describe --tags --dirty returns nothing, we need to use ADS_VERSION in that case if available
  • ADS_PLATFORM_DIR variable allows you to specify a folder for binary files, which is very useful when using a project as submodule

ArtemNabok and others added 2 commits February 19, 2026 12:39
- Move CMAKE_MODULE_PATH outside if(NOT ADS_VERSION) block so it's always available
- Parse ADS_VERSION to set PROJECT_VERSION_* variables for Versioning.cmake
- Update Versioning.cmake to use predefined version when available, fallback to git

This allows building with -DADS_VERSION=X.Y.Z without requiring git repository.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
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

Successfully merging this pull request may close these issues.

1 participant