Skip to content

(Help needed) CMake-Build fails to create correct *.pot file #12

@stefanstaffler

Description

@stefanstaffler

While running a CMake build, I get the following error:

[build] FAILED: src/App.pot
[build] cd <...> && /usr/bin/cmake -E env SOURCE_DATE_EPOCH=1500000000 TZ=UTC <...>/build/_deps/i18ncpp-build/merge/i18n-merge-pot --package=xyz --version= --output=App.pot <...>/build/src/CMakeFiles/App.dir/./app.cpp.o.poc <...>/build/src/CMakeFiles/App.dir/./appwindow.cpp.o.poc <...>/build/src/CMakeFiles/App.dir/./main.cpp.o.poc
[build] terminate called after throwing an instance of 'std::runtime_error'
[build]   what():  Unable to open file

For linking details, I can provide the following of my CMakeLists.txt:

include(FetchContent)
FetchContent_Declare(
    i18ncpp
    GIT_REPOSITORY https://github.com/zauguin/i18n-cpp.git
    GIT_TAG 41f4528
)
FetchContent_MakeAvailable(i18ncpp)

add_executable(App <...>)

<...>

target_use_i18n(App NODOMAIN)

Details about the system installation:

  • Ubuntu 22.04.2 LTS
  • GCC 12.1.0 x86_64-linux-gnu
  • CMake 3.22.1

Some help would be appreciated @zauguin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions