Adding CMake files to build libcaffeine and native-multi-image test.
This PR proposes adding a new build system to build the Caffeine library with CMake.
This cmake will also builds required dependencies such as libassert and GASNet if they are not found. If not, it will build the dependency from the latest available release indicated in the CMakeLists.txt.
The native-mult-image test is also built if the LLVMFlang compiler is used (currently it is the only one that supports PRIF lowering).
About the libassert, for the moment, I'm using fpm to build it and assuming that it is available.
A question remains regarding the use of fpm to build libassert :
- Should I skip using FPM?
- Should we add a cmake or other build system in Assert other thant
fpmand usable byllvm-test-suite? - Or any other suggestion ?
Of course, any feedback regarding this PR is welcome.
@JDPailleux I am Dan's colleague on the GASNet-EX project. He asked if I could have a look at this PR since I have at least a little experience with CMake along with in-depth knowledge of GASNet-EX's build system. I hope to provide a review next week. -Paul EDIT: I do realize this is still "draft".
Hi @PHHargrove , Yes, I put this PR in draft mode in order to test his integration in llvm-test-suite. But you can review it if you wish and your feedback are welcome of course! I can switch in ready
@JDPailleux
Sorry for the delay.
I've tested the case in which your CMakeLists.txt compiles GASNet-EX, but have not yet had the opportunity to test the FindGASNet case.
You will find my improved version in my cmake-phh branch. That has two commits: one edits some messages, while the other makes the changes needed to support GASNet-EX for more cases than the basic smp-conduit case you had initially targeted.
Let me know if you have questions.
-Paul
@JDPailleux
Sorry for the delay. I've tested the case in which your CMakeLists.txt compiles GASNet-EX, but have not yet had the opportunity to test the FindGASNet case.
You will find my improved version in my cmake-phh branch. That has two commits: one edits some messages, while the other makes the changes needed to support GASNet-EX for more cases than the basic smp-conduit case you had initially targeted.
Let me know if you have questions.
-Paul
Hi @PHHargrove , Sorry for the late reply. Thanks for the improved version, I tested it locally and it works too. I admit that I hadn't focused on supporting all conduits (except smp), so thank you!
Everyone seems to agree the commits from @PHHargrove are an improvement, so I've added them to this PR for ease of review.