Why CMake?

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 44

  • @MamaMia84oo7
    @MamaMia84oo7 Год назад +23

    “Why Cmake??” That’s exactly what my question is. Thank you for the information. I understand.

    • @sudocpp
      @sudocpp  Год назад +1

      If you want more details how to use CMake, I have a series explaining some of the things you can do.

  • @manzelo9855
    @manzelo9855 Год назад +4

    Man, this is the best video that I saw on RUclips, Thanks :D

    • @sudocpp
      @sudocpp  Год назад

      Glad you enjoyed it!

  • @SynthByte_
    @SynthByte_ 10 месяцев назад

    was wondering about this for a while now thanks for sharing it helped a lot understanding what cmake is.

    • @sudocpp
      @sudocpp  10 месяцев назад

      Glad it was helpful!

  • @snieguzary
    @snieguzary Год назад +8

    instead of manually running "ninja" you could have invoked "cmake --build ." While the effect is identical, you don't have to remember which generator was used and what binary name is related to it.

    • @sudocpp
      @sudocpp  Год назад

      Yeah! I agree that is a great option as well!

  • @Luis-jl6oh
    @Luis-jl6oh 8 месяцев назад +1

    I was just curios about what it was, thank you.

  • @bennguyen1313
    @bennguyen1313 Год назад

    I've read that
    "Make uses Makefiles to make C."
    "CMake uses CMakeLists to make Makefiles to make Make make C."
    However, is it possible to use CMake with Visual Studio IDE Community?
    For example, there are some projects (ex. frang75 / nappgui ) that say the prerequisites are:
    Visual Studio
    CMake
    Kind of ambiguous if this refers to the Visual Studio Code editor or the Visual Studio IDE. BTW, in the latter, there is a drop-down to select if you are want to build a 32-bit or 64-bit exe, how would this be done using CMake?

    • @sudocpp
      @sudocpp  Год назад

      Having used both VSCode and VS IDE, I'm guessing it is for VSCode. VS IDE is kind of a walled garden experience. It is possible to get CMake to do both 32 but and 64 bit, however it does require knowing which compiler you specifically are using. (As far as I know there isn't a generic way per se.)

  • @golgi_tv
    @golgi_tv Год назад +1

    Good video, Quite Banging even.

    • @sudocpp
      @sudocpp  Год назад

      Glad you liked it, there is a whole series of you want to get into the nitty gritty.

  • @FunnyStep_BK
    @FunnyStep_BK 3 месяца назад

    Thanks!

  • @hannahm9259
    @hannahm9259 Год назад

    Just what I needed!

  • @NoOne-ev3jn
    @NoOne-ev3jn Год назад +1

    Why cmake instead of make?

    • @sudocpp
      @sudocpp  Год назад +1

      Make works well on Linux, but there isn't a great Make solution for Windows. CMake does allow you to build with Make, ninja, and a few others. Personally I slightly prefer BSDs bmake over GNUs make.

    • @ukyoize
      @ukyoize Год назад +3

      ​@@sudocppWindows is a bad system,you shouldn't use it in the first place.

    • @odinsonic
      @odinsonic Год назад +3

      Windows is a bad system,you shouldn't use it in the first place, i use arch btw

    • @QuantumVirus
      @QuantumVirus 11 месяцев назад

      "bad system"
      "prove it"

    • @bedwar12494
      @bedwar12494 10 месяцев назад +3

      @@QuantumVirus ancient kernel, worse for power users, worse for developers, ram consuming, cpu eating, storage stealing, spyware, bloatware
      why would i use it?

  • @stevenbroshar7948
    @stevenbroshar7948 5 месяцев назад +1

    IMO cmake does not make building easier. It makes it harder ... harder than using a less generalized system. What cmake provides is a way to specify the build process in a cross-platform way. If you need to build on platforms that vary significantly, then cmake can be valuable. If you only target one platform or platforms that are very similar, then cmake is a waste of effort to setup.

    • @sudocpp
      @sudocpp  5 месяцев назад

      It's easier than manually typing out the g++ command for me, which is the way I've done it before.

  • @PCB389
    @PCB389 Год назад

    Great info!

    • @sudocpp
      @sudocpp  Год назад

      Glad it was helpful!

  • @charliesumorok6765
    @charliesumorok6765 Год назад +2

    Why not make?

    • @sudocpp
      @sudocpp  10 месяцев назад

      Lol, why not just compile manually by command line? There are lots of ways and everyone prefers different ways.

  • @TuxedoPanther
    @TuxedoPanther Год назад +1

    Great, many thanks 👍

  • @neupanes48
    @neupanes48 Год назад +16

    Sorry but the video doesn't answer why cMake at all, it answers more about how to use CMake.

    • @StrataVision
      @StrataVision Год назад +2

      he talks about it in 2:45 . its more of automation tool and cross compile capabilities

    • @mr_wormhole
      @mr_wormhole Год назад +1

      he actually does, it is for cross-platform building. It is so cumbersome to write makefiles, cmake just generates it

    • @sudocpp
      @sudocpp  Год назад +5

      I'm sorry you weren't able to find the content you were looking for easily. I have added chapters to the video so hopefully it is easier to locate.

    • @zkdadof4
      @zkdadof4 Год назад

      By using it, one can intuit its purpose.

    • @ukyoize
      @ukyoize Год назад +2

      ​@@mr_wormholeIn what universe? CMake is a confusing mess. Regular make is easy.

  • @LindsayLaw-k5p
    @LindsayLaw-k5p 4 месяца назад

    Alysson Square

  • @dd95-5
    @dd95-5 Год назад

    I just hit "run code" in visual studio and thats it

    • @sudocpp
      @sudocpp  10 месяцев назад +1

      Yep, that is an option. However for professional use standard Visual Studio is quite expensive, and it doesn't have releases for Linux and the like.

  • @sophialewinese8654
    @sophialewinese8654 4 месяца назад

    MacGyver Brook

  • @toby9999
    @toby9999 Месяц назад

    CMake sucks. Sorry for being so blunt. CMake is just plain awful. Contributing to the problem is (or was) the abismal lack of decent documentation. I haven't touched CMake years and like never will again... hopefully.

  • @muhdiversity7409
    @muhdiversity7409 Год назад

    Why cmake? You decided that you have nothing better to do with your life? Just write a Makefile and get on with your like. At least make is properly documented.

    • @sudocpp
      @sudocpp  Год назад +1

      I'll have to do a tutorial on how to write for NMake on Windows 😂

    • @toby9999
      @toby9999 Месяц назад

      ​@@sudocppBetter still, use MS Visual Studio on Windows. It makes development so much smoother.