Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. i'm never writing 3300 lines of cmake in a row again

i'm never writing 3300 lines of cmake in a row again

Scheduled Pinned Locked Moved Uncategorized
13 Posts 7 Posters 51 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

    i'm never writing 3300 lines of cmake in a row again

    dysfun@social.treehouse.systemsD This user is from outside of this forum
    dysfun@social.treehouse.systemsD This user is from outside of this forum
    dysfun@social.treehouse.systems
    wrote last edited by
    #3

    @whitequark i hope to never write 3300 lines of cmake total in the rest of my life tbh

    whitequark@social.treehouse.systemsW 1 Reply Last reply
    0
    • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

      there's an ideal amount of cmake someone should write in a row and it's definitely less than that

      ar@is-a.catA This user is from outside of this forum
      ar@is-a.catA This user is from outside of this forum
      ar@is-a.cat
      wrote last edited by
      #4

      @whitequark i'm happy at 0

      1 Reply Last reply
      0
      • dysfun@social.treehouse.systemsD dysfun@social.treehouse.systems

        @whitequark i hope to never write 3300 lines of cmake total in the rest of my life tbh

        whitequark@social.treehouse.systemsW This user is from outside of this forum
        whitequark@social.treehouse.systemsW This user is from outside of this forum
        whitequark@social.treehouse.systems
        wrote last edited by
        #5

        @dysfun the hard part was divining out what ~1500 lines of incomprehensible makefile spaghetti did, with its definition-redefinition-reredefinition of variables, dozens of instances of CFLAGS_WITHOUT_THIS_ONE_THING = $(filter ,), and implicit behaviors that some other thing half the build system across critically relies on

        dysfun@social.treehouse.systemsD 1 Reply Last reply
        0
        • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

          i'm never writing 3300 lines of cmake in a row again

          salty@zwiebel.socialS This user is from outside of this forum
          salty@zwiebel.socialS This user is from outside of this forum
          salty@zwiebel.social
          wrote last edited by
          #6

          @whitequark@social.treehouse.systems Oh god, don't put them all in a row! Use line breaks 😧

          1 Reply Last reply
          0
          • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

            @dysfun the hard part was divining out what ~1500 lines of incomprehensible makefile spaghetti did, with its definition-redefinition-reredefinition of variables, dozens of instances of CFLAGS_WITHOUT_THIS_ONE_THING = $(filter ,), and implicit behaviors that some other thing half the build system across critically relies on

            dysfun@social.treehouse.systemsD This user is from outside of this forum
            dysfun@social.treehouse.systemsD This user is from outside of this forum
            dysfun@social.treehouse.systems
            wrote last edited by
            #7

            @whitequark sounds like the average cmake project to me

            whitequark@social.treehouse.systemsW 1 Reply Last reply
            0
            • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

              there's an ideal amount of cmake someone should write in a row and it's definitely less than that

              colin_mcmillen@piaille.frC This user is from outside of this forum
              colin_mcmillen@piaille.frC This user is from outside of this forum
              colin_mcmillen@piaille.fr
              wrote last edited by
              #8

              @whitequark Yeah, 15-100 should be enough for everybody

              1 Reply Last reply
              0
              • whitequark@social.treehouse.systemsW This user is from outside of this forum
                whitequark@social.treehouse.systemsW This user is from outside of this forum
                whitequark@social.treehouse.systems
                wrote last edited by
                #9

                @meena i think if a makefile fits on a single screenful it might be okay. if it doesn't it definitely isn't

                richardstephens@hachyderm.ioR azonenberg@ioc.exchangeA 2 Replies Last reply
                0
                • dysfun@social.treehouse.systemsD dysfun@social.treehouse.systems

                  @whitequark sounds like the average cmake project to me

                  whitequark@social.treehouse.systemsW This user is from outside of this forum
                  whitequark@social.treehouse.systemsW This user is from outside of this forum
                  whitequark@social.treehouse.systems
                  wrote last edited by
                  #10

                  @dysfun well, yes, i pride myself on writing best-in-class cmake, not average cmake

                  the difference is that you can make well-factored cmake files that grow with the project, but if you try to do this faithfully with makefiles you end with... cmake, or something similar

                  dysfun@social.treehouse.systemsD 1 Reply Last reply
                  0
                  • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                    @dysfun well, yes, i pride myself on writing best-in-class cmake, not average cmake

                    the difference is that you can make well-factored cmake files that grow with the project, but if you try to do this faithfully with makefiles you end with... cmake, or something similar

                    dysfun@social.treehouse.systemsD This user is from outside of this forum
                    dysfun@social.treehouse.systemsD This user is from outside of this forum
                    dysfun@social.treehouse.systems
                    wrote last edited by
                    #11

                    @whitequark yes. i've tended to do the makefile thing because it's less confusing if i know how it all works. i am not sure i know how anything in cmake works despite how much i've used it.

                    i've been using meson recently, but i haven't pushed it nearly as hard as i push make. i don't hate it yet, so that's something.

                    1 Reply Last reply
                    0
                    • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                      @meena i think if a makefile fits on a single screenful it might be okay. if it doesn't it definitely isn't

                      richardstephens@hachyderm.ioR This user is from outside of this forum
                      richardstephens@hachyderm.ioR This user is from outside of this forum
                      richardstephens@hachyderm.io
                      wrote last edited by
                      #12

                      @whitequark @meena I apply roughly the same limit to shell scripts, along with a prohibition on any control flow more complex than - at a stretch - two layers of nested if statements.

                      1 Reply Last reply
                      0
                      • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                        @meena i think if a makefile fits on a single screenful it might be okay. if it doesn't it definitely isn't

                        azonenberg@ioc.exchangeA This user is from outside of this forum
                        azonenberg@ioc.exchangeA This user is from outside of this forum
                        azonenberg@ioc.exchange
                        wrote last edited by
                        #13

                        @whitequark @meena you will certainly not regret writing 30-40 lines of makefile

                        1 Reply Last reply
                        1
                        0
                        • R relay@relay.infosec.exchange shared this topic
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups