-
Notifications
You must be signed in to change notification settings - Fork 7
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
Changes the build system to CMake #56
Conversation
@ilumsden I will be looking into this actively. I will look at your branch and continue this work from here. |
43d1df3
to
b9c6f46
Compare
6fb16f4
to
5887ade
Compare
9037361
to
b6fa11e
Compare
b6fa11e
to
06da6ea
Compare
Did the following changes.
|
623b3f3
to
377313f
Compare
377313f
to
1619e2f
Compare
@JaeseungYeom I fixed all the changes we talked about. Let me know if u think i should change anything else. |
1. Removed dyad_code from public headers 2. used PROJECT_NAME variable for all code 3. prefixed PROJECT_NAME for util code to avoid conflicts
904d89c
to
c7d739c
Compare
Usually when I forgot to specify |
Also, can you confirm the python test is working? |
I fixed it can u check it? |
…ctor � Conflicts: � .github/workflows/compile_test.yaml
It is working locally but not on CI. |
Yes. It works. |
Should python binding be installed as well? |
Generally it's done the other way around where we install cmake project from pip. I can show u an example with that and discuss the changes in a different pr |
CMakeLists.txt
Outdated
set_property(CACHE DYAD_CONTROL_PLANE PROPERTY STRINGS FLUX_RPC) | ||
set(DYAD_DATA_PLANE "FLUX_RPC" CACHE STRING "Protocol to use for DYAD's Data Plane") | ||
set_property(CACHE DYAD_DATA_PLANE PROPERTY STRINGS FLUX_RPC UCX) | ||
set(DYAD_PROFILER "NONE" CACHE STRING "Protocol to use for DYAD's Data Plane") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description of the option is irrelevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
CMakeLists.txt
Outdated
#------------------------------------------------------------------------------ | ||
# Build Type based configurations | ||
#------------------------------------------------------------------------------ | ||
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -std=c99) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should just use the consistent standard with c++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when i switch the code to c++ we can move that right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXED
Since @hariharan-devarajan mentioned that we wanted to do this and since I had some free time on the flight to SC, I just went ahead and started implementing a CMake-based build system for DYAD.
As of now, this PR just implements a drop-in replacement for autotools. It does not restructure the code base, add any major changes to the code, etc.
In case anyone else wants to contribute to this, I put the branch directly on this repo (as opposed to a fork).