-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Port micromamba-feedstock
flags in micromamba
's CMakeLists.txt
#3547
base: main
Are you sure you want to change the base?
build: Port micromamba-feedstock
flags in micromamba
's CMakeLists.txt
#3547
Conversation
See: https://github.com/conda-forge/micromamba-feedstock/blob/898f0787101ef08738bf411b82a5b1baad56e801/recipe/build.sh#L3-L14 Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Likely a mistake. Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
micromamba-feedstock
flags heremicromamba-feedstock
flags in micromamba
's CMakeLists.txt
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${frameworks_flags}") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${frameworks_flags}") | ||
endif() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait shouldn't this be propagated from libmamba/CMakeLists.txt itself ?
We technically need these flags to have a clean build for libmamba.a
(first followed by micromamba)
So I would still end up with.
[ 86%] Linking CXX static library libmamba.a
Error running link command: name too longmake[2]: *** [libmamba/libmamba.a] Error 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to scope them for libmamba.a
, indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you continue this PR and iterate on a solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW you should prefer target_compile_options
to global cmake flags. By setting them as public on the target libmamba, they will automagically propagate to the target linking with libmamba.
See the flags on the feedstock.