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

CMake updates #5

Merged
merged 12 commits into from
May 25, 2024
Merged

CMake updates #5

merged 12 commits into from
May 25, 2024

Conversation

ramcdona
Copy link
Contributor

This PR includes a variety of fixes updating the required CMake from 2.4 to 3.1 as well as other changes required to get things building without errors on my Mac.

The unit tests are still not configured in CTest properly.

This was only tested on MacOS / XCode. It is likely an improvement for other platforms and compilers, but of course needs testing.

find_package(GLUT) now sets GLUT_LIBRARIES instead of GLUT_LIBRARY
This code at least needs to be conditional as it does not work on Apple
silicon chips.

Disabling these commands had no obvious adverse effect, so I'm not sure
the SSE instructions are ever explicitly called.
This still isn't working, it seems like create_test_sourcelist doesn't
like to add tests in subdirectories.  This may be why there were
multiple calls to add_executable before.  However, that does not work
in new CMake.

Perhaps there is another way to add additional files.
@ramcdona ramcdona changed the title C make updates CMake updates Nov 17, 2023
@dhaumont
Copy link
Owner

Thanks for these improvements.
I reviewed them and they seem ok, except the SSE instructions that was commented out and that should better move into an #ifdef switch.
I will test your changes under the other supported platform (Linux and Windows), and merge your PR if it works as expected

@dhaumont dhaumont merged commit 4d26d0f into dhaumont:main May 25, 2024
1 check 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