Login
You're viewing the y.diskcat.com public feed.
  • Oct 6, 2024, 6:55 PM

    I'm working with C, and I don't think people will like my bash script that compiles the project and its dependency, but I don't think people would like me to use cmake or some shit either.

    💬 1🔄 0⭐ 0

Replies

  • Oct 6, 2024, 6:55 PM

    I could use make, make is cool. But god, I wish there was something like cargo for C.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • May 31, 2025, 11:25 AM

    @Nabla I'm open to the idea that cmake is actually easy, but was hard for me because every time I encountered it I was rushing and didn't try to learn

    💬 0🔄 0⭐ 0
  • May 31, 2025, 11:38 AM

    @fabiosantoscode the thing I have found is most useful when working with cmake is the idea that you use variables and strings and options to build a list of targets. Targets then get linked together via the „target_link library“ call. When set up well this is the only declaration needed to link things together, importing all relevant compiler flags from the linked targets. Avoid doing things globally if not explicitly a „global“ option to the project.

    💬 0🔄 0⭐ 0