Skip to content

Look for MakeEmbed.cmake in the correct location even if melonDS is included in subprojects - #2732

Merged
RSDuck merged 1 commit into
melonDS-emu:masterfrom
JesseTG:jtg/fix-header-generation
Aug 23, 2026
Merged

Look for MakeEmbed.cmake in the correct location even if melonDS is included in subprojects#2732
RSDuck merged 1 commit into
melonDS-emu:masterfrom
JesseTG:jtg/fix-header-generation

Conversation

@JesseTG

@JesseTG JesseTG commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

ba317e2 broke the ability to embed melonDS in other CMake projects (like mine), because the path used to search for MakeEmbed.cmake would only be correct when building standalone melonDS. This PR fixes that.

… included in subprojects

- Prefixing the path with `CMAKE_SOURCE_DIR` will be wrong if including melonDS as a dependency
- Replace the path given to `add_custom_command` with a `CMAKE_CURRENT_LIST_DIR` prefix
@RSDuck
RSDuck merged commit 906e9eb into melonDS-emu:master Aug 23, 2026
9 checks passed
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