Skip to content
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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jjerphan
Copy link
Member

@jjerphan jjerphan commented Oct 17, 2024

@jjerphan jjerphan added the release::bug_fixes For PRs fixing bugs label Oct 17, 2024
@jjerphan jjerphan changed the title build: Port micromamba-feedstock flags here build: Port micromamba-feedstock flags in micromamba's CMakeLists.txt Oct 17, 2024
@jjerphan jjerphan marked this pull request as ready for review October 17, 2024 12:35
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${frameworks_flags}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${frameworks_flags}")
endif()

Copy link

@anutosh491 anutosh491 Oct 17, 2024

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

Copy link
Member Author

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.

Copy link
Member Author

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?

Copy link
Member

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.

@jjerphan jjerphan marked this pull request as draft October 17, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release::bug_fixes For PRs fixing bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants