CMake Tutorial EP 5 | Making Libs Optional

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024
  • full CMake playlist: • CMake Tutorial EP 1 | ...
    Thanks for coming to the channel to check out a video on Code, Tech, and Tutorials.
    You can support this channel on Patreon: / codetechtuts
    Please leave your feedback or questions in the comments!
    src: github.com/cod...

ความคิดเห็น • 13

  • @jinasasanapita4025
    @jinasasanapita4025 3 ปีที่แล้ว +5

    I absolutely love the new mic! It doesn't sound like a phone recording!

  • @nerijusvilcinskas7851
    @nerijusvilcinskas7851 ปีที่แล้ว +1

    I watched first few parts and already I'm never coming back to simple makefiles on more serious projects, working on game engine is so much better now, compile times dropped from ~3min to few seconds, thank you!

  • @SatyaPrakash-sg5ob
    @SatyaPrakash-sg5ob ปีที่แล้ว +2

    I watched your series and i am comfortable in cmake!!
    Thanks for this amazing series

  • @SirWrexes
    @SirWrexes 3 หลายเดือนก่อน

    16:25
    Basically you want to add quotes any time ${SOME_VARIABLE} could expand to something containing spaces.
    Adding quotes systematically is kind of a good practice, as you make sure that this can just never happen.
    It is especially relevant when treating filesystem paths, as you never know if a user has downloaded your code into a directory that result in, for example, `PROJECT_SOURCE_DIR=/home/user/Code stuff/OLAS`.
    Any resulting command, e.g. `make -C ${PROJECT_SOURCE_DIR}/*`, could think the directory is `/home/user/Code` and then `stuff/OLAS` is part of the sources to build.

  • @benstanley9788
    @benstanley9788 2 ปีที่แล้ว +2

    Regarding the quotes...
    It looks like cmake separates function arguments by using spaces as a delimiter.
    If any of the macros include spaces when expanded, this will interfere with dividing the line into words. For any macros that do not include spaces, the quotes make no difference.
    So in summary, you should quote anything that could possibly include a space.

  • @vxanica
    @vxanica ปีที่แล้ว

    Thx, very good tutorial for me to start .

  • @dijkstra4678
    @dijkstra4678 2 ปีที่แล้ว

    Amazing series

  • @raizoxxu
    @raizoxxu 3 ปีที่แล้ว

    very good tutorial!

  • @tamasboros1798
    @tamasboros1798 4 ปีที่แล้ว +3

    I have recognized, that if I change the default value of the CMake's option command, the result will not change unless I delete the content of build folder (CMake cache files etc.). If I put the value after CMake command in the command line, everything is fine.

    • @CodeTechandTutorials
      @CodeTechandTutorials  4 ปีที่แล้ว +4

      Interesting. I started using cmake on Windows after doing these tutorials and I'm noticing some pretty Stark differences. I might make the next one addressing some of those.

  • @AITechTalks
    @AITechTalks 11 หลายเดือนก่อน

    Hello, Great Video! cmake must be different from normal programming languages where you would get an error with an undefined variable. For the example with turning Adder to Off the cmake lists would not actually be defined and you are using them at the end of your CMakeLists.txt file. Does that sound correct where if variables are not defined it would just blank it out?

  • @charlessmith1897
    @charlessmith1897 2 ปีที่แล้ว

    Does anyone know what version of linux he is using?

  • @nickst2797
    @nickst2797 7 หลายเดือนก่อน

    This is one of the worst tutorials u have ever seen. Buggy, convoluted and constantly re-iterating the same files.