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: run dump_symbols in CMAKE_SOURCE_DIR #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erooke
Copy link

@erooke erooke commented Oct 6, 2024

Dump symbols should be run within the CMAKE_SOURCE_DIR. If cmake tries to run it with a different working directory it fails to find the script and generates output in the wrong place.

Copy link

@vincele vincele left a comment

Choose a reason for hiding this comment

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

Something should be done, either the proposed PR, or my alternative.
This should be reviewed by a maintainer, IMHO ?
Thanks

@@ -35,6 +35,7 @@ execute_process(
${Python_EXECUTABLE}
dump_symbols.py
"${occt_libs}"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
Copy link

Choose a reason for hiding this comment

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

I am trying to package cadquery for guix.

I had the same fix / workaround, until I tried to only change line 36, to the following
${CMAKE_SOURCE_DIR}/dump_symbols.py
which also "fixed" it for me. I don't know which one is the better "fix"

But I'm here to add my 👍

@adam-urbanczyk
Copy link
Member

It will be reviewed eventually. For packaging please use the released sources in the meantime.

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.

3 participants