Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,923
    • Issues 3,923
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #20745
Closed
Open
Created May 23, 2020 by Clément Grégoire@Lectem

Emscripten: Multiple files generated by add_executable

This follows the discussion https://discourse.cmake.org/t/toolchains-multiple-files-generated-by-add-executable/1161

When compiling using emscripten with its toolchain file (Emscripten.cmake), CMake does not know that it might generate multiple files when using add_executable.

This is because CMake does not have the concept of multiple output files for a same binary target.

By default, emscripten will generate 2 files (js+wasm), but it could as well generate 3 (html+js+wasm).

The impact I know of, caused by the .wasm file not being known by cmake are:

  • The file won’t be removed when using the clean target
  • The file won’t be copied when using install(TARGETS )
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking