{"id":123036,"date":"2025-04-01T15:05:07","date_gmt":"2025-04-01T13:05:07","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/reliz-sborochnoj-sistemy-cmake-4-0-0"},"modified":"2025-04-01T15:05:07","modified_gmt":"2025-04-01T13:05:07","slug":"reliz-sborochnoj-sistemy-cmake-4-0-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/fr\/blog\/news\/reliz-sborochnoj-sistemy-cmake-4-0-0","title":{"rendered":"Sortie de la version 4.0.0 du syst\u00e8me de construction CMake","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>La version 4.0.0 du g\u00e9n\u00e9rateur de scripts multiplateforme CMake, qui sert d'alternative \u00e0 Autotools et est utilis\u00e9e dans des projets tels que KDE, LLVM\/Clang, MySQL, MariaDB, ReactOS et Blender, a \u00e9t\u00e9 publi\u00e9e. Le code CMake est \u00e9crit en C++ et est distribu\u00e9 sous la licence BSD.      <\/p>\n<p>CMake se distingue par la fourniture d'un langage de script simple, des moyens d'\u00e9tendre les fonctionnalit\u00e9s via des modules, le support du cache, des outils pour la cross-compilation, la g\u00e9n\u00e9ration de fichiers de construction pour une large gamme de syst\u00e8mes de construction et de compilateurs, ainsi que des utilitaires ctest et cpack pour d\u00e9finir des sc\u00e9narios de test et de construction de paquets, et l'outil cmake-gui pour configurer les param\u00e8tres de construction de mani\u00e8re interactive.     <\/p>\n<p>Principales modifications :   <\/p>\n<ul>\n<li class=\"l\"> La compatibilit\u00e9 avec les versions de CMake ant\u00e9rieures \u00e0 la version 3.5 a \u00e9t\u00e9 supprim\u00e9e. Lors de la liaison \u00e0 des versions non support\u00e9es dans les fonctions cmake_minimum_required() et cmake_policy(), une erreur sera d\u00e9sormais g\u00e9n\u00e9r\u00e9e.\n<li class=\"l\"> Une variable d'environnement \u00ab CMAKE_POLICY_VERSION_MINIMUM \u00bb a \u00e9t\u00e9 ajout\u00e9e pour red\u00e9finir la version minimale de CMake, une fonctionnalit\u00e9 n\u00e9cessaire pour la construction du projet. La variable ajout\u00e9e permet de se passer de la modification des appels cmake_minimum_required(VERSION) et cmake_policy(VERSION) dans le projet lui-m\u00eame, par exemple pour configurer les politiques de versions dans des projets qui ne pr\u00e9voient pas cette possibilit\u00e9.\n<li class=\"l\"> L'expression du g\u00e9n\u00e9rateur \u00ab $ \u00bb a \u00e9t\u00e9 ajout\u00e9e avec l'op\u00e9ration \u00ab NATIVE_PATH \u00bb pour convertir un chemin de fichier de la repr\u00e9sentation CMake (o\u00f9 les r\u00e9pertoires sont toujours s\u00e9par\u00e9s par \u00ab \/ \u00bb) en un chemin syst\u00e8me (dans les syst\u00e8mes de type Unix, le s\u00e9parateur est \u00ab \/ \u00bb, tandis que sous Windows, c'est \u00ab \\ \u00bb).\n<li class=\"l\"> Sur la plateforme macOS, lors de l'utilisation de g\u00e9n\u00e9rateurs de scripts de construction bas\u00e9s sur l'outil Ninja et les g\u00e9n\u00e9rateurs Makefile, si un compilateur est pr\u00e9sent dans le r\u00e9pertoire \u00ab \/usr\/bin \u00bb, celui-ci est d\u00e9sormais conserv\u00e9 tel quel, sans lien avec le compilateur dans Xcode. Pour la construction sur la plateforme macOS, le choix du SDK et la transmission au compilateur de l'option \u00ab -isysroot \u00bb ont \u00e9t\u00e9 d\u00e9sactiv\u00e9s par d\u00e9faut (c'est maintenant le compilateur qui choisit le SDK, et non CMake).\n<li class=\"l\"> Une propri\u00e9t\u00e9 LINK_WARNING_AS_ERROR a \u00e9t\u00e9 ajout\u00e9e, selon laquelle les avertissements du linker seront trait\u00e9s comme des erreurs. Pour d\u00e9sactiver cette propri\u00e9t\u00e9, une option de ligne de commande \u00ab --link-no-warning-as-error \u00bb a \u00e9t\u00e9 ajout\u00e9e.\n<li class=\"l\"> Une option \u00ab --project-file \u00bb a \u00e9t\u00e9 ajout\u00e9e \u00e0 l'outil cmake pour sp\u00e9cifier un nom alternatif pour le fichier CMakeLists.txt.\n<li class=\"l\"> Le g\u00e9n\u00e9rateur CPack a \u00e9t\u00e9 enrichi de la possibilit\u00e9 de cr\u00e9er des archives tar non compress\u00e9es.\n<li class=\"l\"> La commande target_link_libraries() ainsi que les variables CMAKE_EXE_LINKER_FLAGS*, CMAKE_SHARED_LINKER_FLAGS*, CMAKE_MODULE_LINKER_FLAGS* ont ajout\u00e9 le support du pr\u00e9fixe \u00ab LINKER: \u00bb.\n<li class=\"l\"> De nouvelles variables ont \u00e9t\u00e9 ajout\u00e9es :\n<ul>\n<li> CMAKE_EXECUTE_PROCESS_COMMAND_ERROR_IS_FATAL,\n<li> CMAKE__LINK_MODE,\n<li> CMAKE__DEVICE_LINK_MODE,\n<li> CMAKE_LINK_WARNING_AS_ERROR,\n<li> CMAKE_MSVC_RUNTIME_CHECKS,\n<li> CMAKE_DEBUGGER_WORKING_DIRECTORY,\n<li> CMAKE_XCODE_SCHEME_LLDB_INIT_FILE,\n<li> CMAKE_XCODE_SCHEME_TEST_CONFIGURATION.   <\/ul>\n<li class=\"l\"> De nouvelles propri\u00e9t\u00e9s ont \u00e9t\u00e9 ajout\u00e9es : DEBUGGER_WORKING_DIRECTORY et VS_SOLUTION_ITEMS (pour attacher des fichiers au .sln pour Visual Studio).\n<li class=\"l\"> La g\u00e9n\u00e9ration de builds CMake pour SunOS pour les architectures sparc64 et x86_64 est assur\u00e9e.            <\/ul>\n<p>Source : <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=62974\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u043b\u0438\u0437 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0441\u0431\u043e\u0440\u043a\u0438 CMake 4.0.0, \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Autotools \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043a\u0430\u043a KDE, LLVM\/Clang, MySQL, MariaDB, ReactOS \u0438 Blender. \u041a\u043e\u0434 CMake \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 C++ \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 BSD. CMake \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u0435\u043d \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432, \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u0438, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0430\u043b\u0438\u0447\u0438\u0435\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0440\u043e\u0441\u0441-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-123036","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u043b\u0438\u0437 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0441\u0431\u043e\u0440\u043a\u0438 CMake 4.0.0, \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Autotools \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043a\u0430\u043a KDE, LLVM\/Clang, MySQL, MariaDB, ReactOS \u0438.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/fr\/blog\/news\/reliz-sborochnoj-sistemy-cmake-4-0-0\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0420\u0435\u043b\u0438\u0437 \u0441\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b CMake 4.0.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u043b\u0438\u0437 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0441\u0431\u043e\u0440\u043a\u0438 CMake 4.0.0, \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Autotools \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043a\u0430\u043a KDE, LLVM\/Clang, MySQL, MariaDB, ReactOS \u0438.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/fr\/blog\/news\/reliz-sborochnoj-sistemy-cmake-4-0-0\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-04-01T13:05:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-04-01T13:05:07+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Lancement du syst\u00e8me de build CMake 4.0.0 | ProHoster","description":"La version 4.0.0 du g\u00e9n\u00e9rateur de scripts de build multiplateforme et open source CMake a \u00e9t\u00e9 publi\u00e9e. Il sert d'alternative \u00e0 Autotools et est utilis\u00e9 dans des projets tels que KDE, LLVM\/Clang, MySQL, MariaDB, ReactOS, et.","canonical_url":"https:\/\/prohoster.info\/fr\/blog\/news\/reliz-sborochnoj-sistemy-cmake-4-0-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"fr_FR","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0420\u0435\u043b\u0438\u0437 \u0441\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b CMake 4.0.0 | ProHoster","og:description":"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0440\u0435\u043b\u0438\u0437 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 \u0441\u0431\u043e\u0440\u043a\u0438 CMake 4.0.0, \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b Autotools \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043a\u0430\u043a KDE, LLVM\/Clang, MySQL, MariaDB, ReactOS \u0438.","og:url":"https:\/\/prohoster.info\/fr\/blog\/news\/reliz-sborochnoj-sistemy-cmake-4-0-0","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2025-04-01T13:05:07+00:00","article:modified_time":"2025-04-01T13:05:07+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"123036","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 11:40:21","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2026-01-23 11:40:21","updated":"2026-01-23 11:40:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts\/123036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/comments?post=123036"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts\/123036\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/media?parent=123036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/categories?post=123036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/tags?post=123036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}