Skip to content

Swap config stage and locale stage in CMakeLists.txt#445

Merged
spe-ciellt merged 1 commit intodevelopfrom
fix/make-sure-config-is-run-before-locale
Mar 18, 2026
Merged

Swap config stage and locale stage in CMakeLists.txt#445
spe-ciellt merged 1 commit intodevelopfrom
fix/make-sure-config-is-run-before-locale

Conversation

@spe-ciellt
Copy link
Copy Markdown
Contributor

@spe-ciellt spe-ciellt commented Mar 18, 2026

At a new clone, CMake tried to create the .pot files from authors.c and bugs.c, but they were not created yet. The config stage hadn't run.

The .pot files are created in locale/locale, so even if you remove the build directory the fail will not be noticed. That is why it failed at clone, but not on subsequent builds.

To see the error you need to run (before this fix)

rm -rf locale/locale
rm -rf build
cmake --preset linux-gnu-gcc

Was noticed in #438

At a new clone, CMake tried to create the .pot files from authors.c and bugs.c,
but they were not created yet. The config stage hadn't run.

The .pot files are created in locale/locale, so even if you remove the build
directory the fail will not be noticed. That is why it failed at clone, but
not on subsequent builds.

To see the error you need to run (before this fix)
rm -rf locale/locale
rm -rf build
cmake --preset linux-gnu-gcc
@spe-ciellt spe-ciellt self-assigned this Mar 18, 2026
@spe-ciellt spe-ciellt added fix Solution for a potential problem or omission. buildsystem Updates to the buildsystem (CMake/CTest/CPack) labels Mar 18, 2026
@spe-ciellt spe-ciellt merged commit 5fe0ccc into develop Mar 18, 2026
8 checks passed
@spe-ciellt spe-ciellt deleted the fix/make-sure-config-is-run-before-locale branch March 18, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildsystem Updates to the buildsystem (CMake/CTest/CPack) fix Solution for a potential problem or omission.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant