-
Notifications
You must be signed in to change notification settings - Fork 332
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 build issue #176
Comments
Hi. That file is being created by the autotools (by |
This is disappointing. Automake is dying, CMake is the industry standard. Adding this to my larger project was a one-liner, but unforunately the CMake builds don't work :| Why have them if they aren't supported? |
Hi @Qix-. I empathise with your disappointment, but in the world I'm living Autotools is very well alive, while nobody's using CMake. This is not a judgement of value, it's just a description of my reality. Now: why have them? Well, here's the story: I switched to CLion, which:
So, for a while, I used to boostrap the Autotools project as usual, and at the same time I could have sanity inside CLion. I started experimenting with it, but not only it gives me no real advantage, but it's an additional complexity which is a cost to me. As a consequence, I stopped working on it. Please, feel free to submit a PR if you feel so inclined. :) |
The build system of a project should not at all be influenced by the IDEs of a single developer of that project. I would open a PR but would it be accepted? It wouldn't use your autotools setup at all. Its goal would be to replace it entirely. |
@Qix-, I told you the story to tell you why that CMakefile is there, in the first place. Without it, it wouldn't be there and I'm wondering whether this discussion would exist at all. Now, the build system of Even a cursory search I've made out of curiosity on the MacPorts repository, where I'm the I don't want to open a can of worms because, frankly, Autotools have worked excellently out of the box on all the systems I'm using, including Solaris, FreeBSD, etc. If you decide to contribute a PR I can see the following scenarios:
In either case, I still don't see where the value is, since Autotools are meant to not require them in the host where you're building the source tar ball. On the other hand, CMake is required. And is there any place in the world when you're building a C/C++ program and you do not have |
🤷♂ sounds like you've made up your mind, then :) I'll look for another filesystem watcher. Thanks! |
I haven't made up my mind, I just haven't got any proposal, really, nor understood where the problem is. If that was the case, I'd certainly like to help. Have you got any problem building the software from a release tarball with |
I can see both sides of the coin. I can imagine someone already using cmake build system would find it very easy to integrate a cmake build system third party software and would naturally prefer a cmake build system for all dependencies but not always possible. |
Thanks @abbaswasim. I don't see why not: according to the docs you should be able to run any process during a CMake build (https://cmake.org/cmake/help/latest/command/execute_process.html). You can:
That's exactly what port systems such as MacPorts or HomeBrew do. |
Hey :D I've been working with cmake and clion for a while and I was disappointed to see that the cmake build system was broken. There are a couple reasons why I would prefer cmake (most of them have to do with libfswatch but ehh).
I'm unsure if you've excluded MSVC by design (backends don't work properly with it) or if it's just a byproduct of using To be entirely honest, I'm blissfully incompetent with automake, and I haven't been able to build yet to take a look at the config file that's causing the trouble. By excluding it, I've managed to make cmake build on macOS, although its a really 'workaroundy' solution. I'm willing to spend time to get the cmake build system up to date, test on multiple platforms and create a PR- as long as it will get merged 😓. Stuff like including |
FYI: I fixed this and added MSVC support in #282 |
Thanks @SamuelMarks for your contribution. I've added comments to #282, since I don't think this is actually fixed yet. |
cmake make build failure
CMake Error at libfswatch/CMakeLists.txt:115 (add_library):
Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error at fswatch/src/CMakeLists.txt:9 (add_executable):
Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error at test/src/CMakeLists.txt:7 (add_executable):
Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: Cannot determine link language for target "libfswatch".
CMake Error: CMake can not determine linker language for target: libfswatch
CMake Error: CMake can not determine linker language for target: fswatch
CMake Error: Cannot determine link language for target "fswatch".
CMake Error: CMake can not determine linker language for target: fswatch_test
CMake Error: Cannot determine link language for target "fswatch_test".
The text was updated successfully, but these errors were encountered: