Why is CMake so fast?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Therem Harth
    Knight
    • Jan 2008
    • 926

    Why is CMake so fast?

    Something I noticed when compiling ToME 2.3.5 vs. 2.3.9-ah: 2.3.5 (which uses a handwritten(?) makefile, as opposed to CMake) takes several minutes longer to compile.

    Does CMake automatically invoke parallel jobs, or something like that?
  • AnonymousHero
    Veteran
    • Jun 2007
    • 1393

    #2
    CMake doesn't build in parallel automatically, but you can get to do that using, e.g.
    Code:
    make -j5
    for compiling on 4 cores. Another option is to set the MAKEFLAGS environment variable to "-j5" (sans quotes).

    I'm not sure if the "legacy" makefiles in ToME <= 2.3.5 support this properly in any way.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎