Ho lokolloa ha sistimi ea kaho ea CMake 3.18

Tsebisoa ho lokolloa ha jenereithara e bulehileng ea mongolo oa sefapano CMake 3.18, e sebetsang e le mokhoa o mong oa Autotools mme e sebelisoa mererong e kang KDE, LLVM/Clang, MySQL, MariaDB, ReactOS le Blender. Khoutu ea CMake e ngotsoe ka C++ 'me e ajoa tlas'a laesense ea BSD.

CMake e tsebahala ka ho fana ka puo e bonolo ea ho ngola, mokhoa oa ho atolosa ts'ebetso ka li-module, palo e fokolang ea batho ba itšetlehileng ka eona (ha e tlamehe ho M4, Perl kapa Python), tšehetso ea caching, boteng ba lisebelisoa tsa ho kopanya, tšehetso bakeng sa ho hlahisa mohaho. lifaele bakeng sa mefuta e mengata ea litsamaiso tsa kaho le li-compilers, lisebelisoa tsa boteng ba ctest le cpack bakeng sa ho hlalosa lingoloa tsa liteko le liphutheloana tsa moaho, thuso ea cmake-gui bakeng sa ho seta li-parameter tsa kaho.

ka sehloohong ntlafatso:

  • Puo ea CUDA e ka hahoa ho sebelisoa Clang ho li-platform tse ling ntle le Windows. Pokello e arohaneng ea CUDA ha e so tšehetsoe sethaleng sefe kapa sefe.
  • Tšehetso e ekelitsoeng bakeng sa ho etsa profil ea mangolo a CMake ho sebelisoa likhetho tsa "--profiling-output" le "--profiling-format".
  • Litaelo tsa add_library() le add_executable() joale li ts'ehetsa ho theoa ha Liphello tsa Alias ​​tse buang ka lipehelo tse sa tsoang kantle ho naha.
  • E kentse taelo ea cmake_language() bakeng sa ts'ebetso ea meta ho litaelo tse ngotsoeng kapa tse hahiloeng.
  • Faele e ekelitsoeng (CONFIGURE) subcommand, e ts'oanang le ts'ebetso ho configure_file (), empa ho fetisa litaba e le khoele ho fapana le referense ea faele.
  • E kentse khetho e HLOKAHANG ho fumana_program (), find_library (), find_path (), le find_file () litaelo tsa ho emisa ho sebetsa ka phoso haeba ho se letho le fumanoeng.
  • Phapang e kentsoeng "CMAKE_CUDA_ARCHITECTURES" ho bonts'a meralo ea CUDA (seta ka bohona haeba "CMAKE_CUDA_COMPILER_ID" e setetsoe ho "NVIDIA").
  • E kentse thepa ea "UNITY_BUILD_MODE" bakeng sa ho khetha algorithm ea lihlopha bakeng sa lifaele tsa mohloli tse kenyellelitsoeng (BATCH, GROUP) ho jenereithara.
  • E kentse mojule oa CheckLinkerFlag ho lekola ho nepahala ha lifolakha tsa khokahano.
  • E kenyellelitse lipolelo tsa jenereithara tsa $ , $ , $ le $ .
  • CTEST_RESOURCE_SPEC_FILE e feto-fetoha e kenyellelitsoe ts'ebelisong ea ctest ho hlakisa faele ea lintlha tsa mohloli.

Source: opennet.ru

Eketsa ka tlhaloso