Skip to content

[improvements] CMake files improvements#65

Closed
jesuschristservant wants to merge 1 commit intoamhndu:masterfrom
jesuschristservant:feature/cmake-improvements
Closed

[improvements] CMake files improvements#65
jesuschristservant wants to merge 1 commit intoamhndu:masterfrom
jesuschristservant:feature/cmake-improvements

Conversation

@jesuschristservant
Copy link

@jesuschristservant jesuschristservant commented Oct 3, 2025

CMake improvements

Reason of Changes

File Rationale
FindSFML.cmake Improve SFML version obtention.
The current regex matches the entire file up to and after the desired line.
Now we safely first extract the line containing the macro and then extract the version number.
CMakeLists.txt use ${PROJECT_NAME} to set the name of the project at one place.

Tests

  • built on Mac OS M3
  • ran a ROM for testing purposes

- FindSFML.cmake: improve SFML version obtention
- CMakeLists.txt: use ${PROJECT_NAME} to avoid repeating SimpleNES
@amhndu
Copy link
Owner

amhndu commented Oct 5, 2025

Why is this required? The previous one was vendored directly from official SFML distribution and was known to work on mac/linux/windows (check ci pipelines).

@amhndu amhndu closed this Oct 5, 2025
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