Skip to content

fix(project): reject names reserved by CMake - #4

Merged
boykopovar merged 1 commit into
boykopovar:mainfrom
AnyDevStudio:fix/init-reserved-names
Nov 15, 2026
Merged

boykopovar merged 1 commit into
boykopovar:mainfrom
AnyDevStudio:fix/init-reserved-names

Conversation

@utkuhalis

Copy link
Copy Markdown
Contributor

Summary

adk init all succeeds, but the generated project cannot be configured because CMake rejects that target name. adk init now rejects the names CMake refused in my check, before writing anything:

all, ALL_BUILD, help, install, INSTALL, preinstall, clean, edit_cache, rebuild_cache, ZERO_CHECK

I checked candidates with add_executable in a minimal Ninja project on CMake 4.3. test, RUN_TESTS, package, PACKAGE and package_source configured fine there, so they stay allowed.

Testing

ProjectCommands.py asserts that each reserved name fails with no directory created, and that test still works. The new test failed against the previous code and passes now.

Tested on macOS arm64 only, where running it also needs the executable path fix from fix/macos-host. ctest passed 11/11 with both applied. I did not run Linux or Windows locally.

@boykopovar
boykopovar merged commit 2608038 into boykopovar:main Nov 15, 2026
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