Skip to content

Conversation

afuller-TT
Copy link
Contributor

Line 144 is calling add_library(tokenizers_c INTERFACE ${TOKENIZERS_RUST_LIB})
The signature of add_library(... INTERFACE ...) that accepts sources was added in CMake v3.19 earlier versions error out if sources are provided to an interface library.

Bump the minimum version to reflect this. I also specified the upper policy level which helps with deprecation warnings in the future even if compatibility with old versions is maintained. Details of that can be found here: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html

@tqchen tqchen merged commit 0621f84 into mlc-ai:main Feb 6, 2025
afuller-TT added a commit to tenstorrent/tt-metal that referenced this pull request Feb 7, 2025
### Ticket
None

### Problem description
Tokenizers CPP requires v3.19. See:
mlc-ai/tokenizers-cpp#59

### What's changed
Rather than a conditional minimum hinged on whether we build TT-Train or
not, just set the global minimum for the repo.

### Checklist
- [ ] [All post
commit](https://github.com/tenstorrent/tt-metal/actions/workflows/all-post-commit-workflows.yaml)
CI passes
- [ ] [Blackhole Post
commit](https://github.com/tenstorrent/tt-metal/actions/workflows/blackhole-post-commit.yaml)
CI passes (if applicable)
- [ ] [Model
regression](https://github.com/tenstorrent/tt-metal/actions/workflows/perf-models.yaml)
CI passes (if applicable)
- [ ] [Device performance
regression](https://github.com/tenstorrent/tt-metal/actions/workflows/perf-device-models.yaml)
CI passes (if applicable)
- [ ] **(For models and ops writers)** Full [new models
tests](https://github.com/tenstorrent/tt-metal/actions/workflows/full-new-models-suite.yaml)
CI passes (if applicable)
- [ ] New/Existing tests provide coverage for changes
hschoi4448 pushed a commit to tenstorrent/tt-metal that referenced this pull request Feb 20, 2025
### Ticket
None

### Problem description
Tokenizers CPP requires v3.19. See:
mlc-ai/tokenizers-cpp#59

### What's changed
Rather than a conditional minimum hinged on whether we build TT-Train or
not, just set the global minimum for the repo.

### Checklist
- [ ] [All post
commit](https://github.com/tenstorrent/tt-metal/actions/workflows/all-post-commit-workflows.yaml)
CI passes
- [ ] [Blackhole Post
commit](https://github.com/tenstorrent/tt-metal/actions/workflows/blackhole-post-commit.yaml)
CI passes (if applicable)
- [ ] [Model
regression](https://github.com/tenstorrent/tt-metal/actions/workflows/perf-models.yaml)
CI passes (if applicable)
- [ ] [Device performance
regression](https://github.com/tenstorrent/tt-metal/actions/workflows/perf-device-models.yaml)
CI passes (if applicable)
- [ ] **(For models and ops writers)** Full [new models
tests](https://github.com/tenstorrent/tt-metal/actions/workflows/full-new-models-suite.yaml)
CI passes (if applicable)
- [ ] New/Existing tests provide coverage for changes
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.

2 participants