-
Notifications
You must be signed in to change notification settings - Fork 155
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 #53
Comments
The current build-system is maddening(not the kind of guy but it makes me want to yell out of rage), very hard to use. |
I aggree to lilianmoraru! The current system is a pain! |
Contributions welcome ;-) |
Hi. Add cmake support in macchina was also on my wish/todo list. I already started with this, but it is not yet usable. When I finished my Crypto X509 extension contribution (see pull request 1918 in poco) then I will come back to my cmake support in macchina :-). But maybe somebody already started with adding cmake support in macchina. Maybe I can help there? |
@Bjoe see with @uilianries, he may be working on it |
@uilianries Sorry for the late answer. I get in trouble with this weird clang compiler bug (see 1950).
Yes I will do this. But let me cleanup a little bit. Again, it is not yet usable means... there are hardcoded path in there :-) for example. I should remove/fix this. But I will commit step by step. |
@uilianries I pushed a POC version. Many files are copied from Poco project.... should be cleanup. The interesting part are in macchina.io/platform/OSP. I added for some bundle a CMake file. My idea or goal is, that I can create a bundle project without checking out macchina.io from the repo. There should be a "macchina.io dev" installation somewhere with the tools, libraries and headers that I need to build a bundle. Thats why the bundle CMakeLists.txt looks like:
But the "infrastructure" of the cmake build system its not yet ready ... maybe this needs to be changed. |
@Bjoe I'll take a look ASAP. Thanks for the report! CMake support is a huge improvement in my opinion. |
@Bjoe I think for an initial implementation it would be a considerable improvement to have the project build. The rest of the features can be added later, it might be overwhelming to try to implement everything from the beginning. Btw, Instead of |
@Bjoe Thanks for your efford to create a CMake script! I've tried your branch:
@ALL I'm not sure it's a good idea to copy parts from Poco. For example, it tries to build NetSSL_Win even though it does not exist. Isn't it useful to either define Poco as a dependency or to integrate Poco completely as a Git submodule? |
it is, but there are sticky points, like OSP and CodeGeneration. There's an issue for that: #15 |
@uilianries Don't be stressed. I have also few tickets open that I will finish and close before I get deeper into cmake support for machhina.
Yep 👍
@lilianmoraru Ok, that's also my idea. That's why I "copy/paste" most from poco project and create a pull request to start a discussion which direction we will go. In the OSP I added only my proposal :-).
Yes, boost does this also. I also thinking about this. I use here the poco project approach. Unfortunately it is not possible to do this there.
@OgreTransporter Well it is a POC (proof of concept) and it is not really usable.
@OgreTransporter I'm also not a big fan of copy paste and this files(GLOB *.cpp) approach has side effects. But macchina is based on poco project and we have here poco project developer they have knowledge about the cmake stuff from there. So for me it was logical to use first the stuff from there and see if it is possible to reuse it. Now we can decide if we will use it.
@OgreTransporter This lines 52-60 in CMakeList.txt is only a "Hack". Should be cleanup when we decide if we will use the cmake stuff from pocoproject or not.
👍 I think, what learn from the POC and what I understand from the discussion, we need something new for the OSP part. But I also think we should use the cmake stuff from pocoproject for the poco parts. Especially when we seperate the project and add poco project as git submodule for example. But maybe it is a good idea to get it done as @lilianmoraru said, and build macchina first like the make based build system. After that we can refactor. |
It would be nice to have CMake support for macchina.io like the poco project.
The text was updated successfully, but these errors were encountered: