Skip to content

Fix dependencies using system-default compiler.#81

Open
nimble0 wants to merge 1 commit into
agruzdev:masterfrom
nimble0:fix/non-default-compiler
Open

Fix dependencies using system-default compiler.#81
nimble0 wants to merge 1 commit into
agruzdev:masterfrom
nimble0:fix/non-default-compiler

Conversation

@nimble0
Copy link
Copy Markdown
Contributor

@nimble0 nimble0 commented May 25, 2026

Compiler arguments need to be passed to ExternalProjects otherwise they use the system default compiler.

@nimble0
Copy link
Copy Markdown
Contributor Author

nimble0 commented May 25, 2026

Might be a good idea to extend this to pass compile options as well.

@agruzdev
Copy link
Copy Markdown
Owner

Hello!

My initial idea was that CMAKE_TOOLCHAIN_FILE can be used to setup a custom compiler. Is it not convenient?

As for only CC/CXX args, isn't it easier to set them just as environment variables before running CMake?

UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${MESON_EXECUTABLE} setup --backend ${MESON_BACKEND} --buildtype ${MESON_BUILD_TYPE}
CONFIGURE_COMMAND env CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${MESON_EXECUTABLE} setup --backend ${MESON_BACKEND} --buildtype ${MESON_BUILD_TYPE}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it work on Windows?

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.

2 participants