I'm trying to add the -a option in CMake, but it's not working. How can I fix this? #24953
-
I tried using target_link_options, but it didn't work. target_link_options(Project1 PRIVATE
"SHELL:-lembind"
"SHELL:-sALLOW_MEMORY_GROWTH=1"
"SHELL:-oindex.html"
) |
Beta Was this translation helpful? Give feedback.
Answered by
Aaron-Bird
Aug 17, 2025
Replies: 2 comments
-
I found a solution, like this: set_target_properties(Project1 PROPERTIES
SUFFIX ".html"
OUTPUT_NAME "index"
) Reference #19973 (comment) But I'm wondering, why doesn't the target_link_options option work? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Aaron-Bird
-
Read the build.ninja code generated by cmake. I think this is the reason.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a solution, like this:
Reference #19973 (comment)
But I'm wondering, why doesn't the target_link_options option work?