Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 10, 2026

For some reason setting CMAKE_EXECUTABLE_SUFFIX from the command line does not work, even though settings CMAKE_EXECUTABLE_SUFFIX_<LANG> does work. This seems to be true regardless of what I do in the toolchain file. Its also true for native/host cmake.

i.e. -DCMAKE_EXECUTABLE_SUFFIX=.foo has no effect but -DCMAKE_EXECUTABLE_SUFFIX_C=.foo works.

Replaces: #22315

For some reason setting `CMAKE_EXECUTABLE_SUFFIX` from the command line
does not work, even though settings `CMAKE_EXECUTABLE_SUFFIX_<LANG>`
does work.  This seems to be true regardless of what I do in the
toolchain file.  Its also true for native/host cmake.

i.e. `-DCMAKE_EXECUTABLE_SUFFIX=.foo` has no effect but
`-DCMAKE_EXECUTABLE_SUFFIX_C=.foo` works.

Replaces: emscripten-core#22315
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.

1 participant