Skip to content

Add CMake file + GitHub actions #14

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

Closed
wants to merge 1 commit into from
Closed

Add CMake file + GitHub actions #14

wants to merge 1 commit into from

Conversation

dacap
Copy link

@dacap dacap commented Sep 24, 2022

A little CMakeLists.txt file that is used by new GitHub action workflows to build cppfront on different platforms. The only one failing right now is in Ubuntu with gcc 9 (it looks like the header file is not available). I can add an extra check for that header file in the CMakeLists.txt, but I think it would be better if it can be detected with a preprocessor macro (so cppfront could be still compiled with CMake).

After this is merged (or some other/modified version of this) I can add the automatic compilation and execution of all regression tests on each pushed commit or PR with cmake/ctest.

I accept the Contributor License Agreement: https://github.com/hsutter/cppfront/blob/fa65d346996ec472e16c61838fbc7a47736d7872/CONTRIBUTING.md#contributor-license-agreement

@@ -0,0 +1,6 @@
project(cppfront CXX)

Choose a reason for hiding this comment

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

This entire file is UB without cmake_minimium_required at the top

@dacap
Copy link
Author

dacap commented Sep 25, 2022

Seeing Herb’s answer here, it looks like CMake will be more a problem than a solution for him in this early stage. Closing this PR at the moment.

@dacap dacap closed this Sep 25, 2022
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