Skip to content

Allow libqemu to be built outside of CPM.#91

Open
benoitdudu wants to merge 1 commit into
qualcomm:mainfrom
SiPearl:allow_libqemu_to_be_built_outside_cpm
Open

Allow libqemu to be built outside of CPM.#91
benoitdudu wants to merge 1 commit into
qualcomm:mainfrom
SiPearl:allow_libqemu_to_be_built_outside_cpm

Conversation

@benoitdudu

Copy link
Copy Markdown
Contributor

Hello,

I tried to build Qbox by compiling libqemu outside CPM.
To do that I set the following environment variables:
export CPM_USE_LOCAL_PACKAGES=ON
export libqemu_ROOT=/lib64/cmake/libqemu'

Unfortunately, it currently fails to compile (an include error occurred in this case). To resolve this issue, I updated the Qbox CMakeLists.txt file.

Best Regards,
Benoît

Signed-off-by: Benoit Dumas <benoit.dumas@sipearl.com>
@quic-mliebel

Marco Liebel (quic-mliebel) commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Hey Benoît,

CPM has a way to override dependency sources: https://github.com/cpm-cmake/CPM.cmake#local-package-override

For libqemu it would be -D CPM_libqemu_SOURCE=/foo/bar

Did you try that already?

@benoitdudu

Copy link
Copy Markdown
Contributor Author

Hi Marco,

Thanks for reminding me of this possibility, I had not actually tried that.
In my case, I already need (I actually did not find another solution) to use CPM_USE_LOCAL_PACKAGES=ON for the SystemC library, as I need to use the version provided by my EDA vendor.

Anyway, I tried my modification with the 3 cases:

  • current build flow
  • set CPM_USE_LOCAL_PACKAGES=ON and libqemu_ROOT
  • set CPM_libqemu_SOURCE

All of them are OK.

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