Skip to content

Fix CMake extract targets to not use absolute path for xml root#3330

Merged
briaguya0 merged 2 commits intoHarbourMasters:developfrom
Archez:extract-relative-path
Oct 25, 2023
Merged

Fix CMake extract targets to not use absolute path for xml root#3330
briaguya0 merged 2 commits intoHarbourMasters:developfrom
Archez:extract-relative-path

Conversation

@Archez
Copy link
Contributor

@Archez Archez commented Oct 25, 2023

Use a relative path to the root xmls for the extract assets targets, and pass in the root for the xmls on the headers target

Build Artifacts

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

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

:shipit:

This specifically fixes an issue I was having because my working directory is /home/briaguya/code/Shipwright/
The code here https://github.com/HarbourMasters/ZAPDTR/blob/3d8a9c1efe15ad84bfca78a5a08a02489d8ed98c/ZAPD/ZResource.cpp#L345-L346

else if (StringHelper::Contains(xmlPath, "code/"))
			prefix = "code";

was leading to code being prefixed to assets that should not have it

Ideally we can get a fix for this into ZAPD so path checking logic only looks in the right spots, but this is good to have in here for now

@briaguya0 briaguya0 merged commit 4fc0d5a into HarbourMasters:develop Oct 25, 2023
@Archez Archez deleted the extract-relative-path branch October 25, 2023 07:20
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