Skip to content

Escape \${CMAKE_INSTALL_PREFIX} instead of using $<INSTALL_PREFIX>#1990

Draft
Rangi42 wants to merge 1 commit into
gbdev:masterfrom
Rangi42:cmake-install-prefix
Draft

Escape \${CMAKE_INSTALL_PREFIX} instead of using $<INSTALL_PREFIX>#1990
Rangi42 wants to merge 1 commit into
gbdev:masterfrom
Rangi42:cmake-install-prefix

Conversation

@Rangi42

@Rangi42 Rangi42 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Fixes #1985

To do: make sure that building this on Windows 7 with CMake 3.24 actually works.

The latter requires CMake 3.27, despite only being necessary when
cross-compiling for Windows MinGW on Linux.
@Rangi42 Rangi42 added this to the 1.0.2 milestone Jun 12, 2026
@Rangi42 Rangi42 added bug Unexpected behavior / crashes; to be fixed ASAP! builds This affects the build process or release artifacts labels Jun 12, 2026
@ISSOtm

ISSOtm commented Jun 12, 2026

Copy link
Copy Markdown
Member

This won't work if the install prefix isn't specified at compile time.

@Rangi42

Rangi42 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

This won't work if the install prefix isn't specified at compile time.

Ugh. I really hope you have a solution that does work then, because right now we're relying on a 3.27 feature while claiming to support 3.24. I'm trying to find a simple solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected behavior / crashes; to be fixed ASAP! builds This affects the build process or release artifacts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cross-compiling on Linux for MinGW relies on CMake $<INSTALL_PREFIX> generator expression

2 participants