head 1.11; access; symbols pkgsrc-2026Q3:1.10.0.2 pkgsrc-2026Q3-base:1.10 pkgsrc-2026Q2:1.9.0.2 pkgsrc-2026Q2-base:1.9 pkgsrc-2026Q1:1.8.0.2 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.7.0.4 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.2 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.6.0.6 pkgsrc-2025Q2-base:1.6 pkgsrc-2025Q1:1.6.0.4 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.2 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.5.0.2 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.4.0.2 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.3.0.4 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.2 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.2.0.6 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.4 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.2 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.1.0.34 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.32 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.30 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.28 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.26 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.24 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.22 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.20 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.18 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.16 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.14 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.10 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.12 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.8 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.6 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.4 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @# @; 1.11 date 2026.11.16.16.53.19; author adam; state Exp; branches; next 1.10; commitid RkGkqAUN3ORVSH3H; 1.10 date 2026.07.16.11.14.00; author adam; state Exp; branches; next 1.9; commitid GVevG5hANuwIXRNG; 1.9 date 2026.03.26.09.00.32; author adam; state Exp; branches; next 1.8; commitid Hk9A74MiiW84PszG; 1.8 date 2025.12.21.19.24.08; author adam; state Exp; branches; next 1.7; commitid nknURYkoFdgckjnG; 1.7 date 2025.08.20.11.34.12; author wiz; state Exp; branches; next 1.6; commitid h51xGAjNqOBnGs7G; 1.6 date 2024.11.10.19.58.31; author adam; state Exp; branches; next 1.5; commitid 55AA6RNhWlDiz8xF; 1.5 date 2024.07.04.06.06.22; author adam; state Exp; branches; next 1.4; commitid eninCcYDo5mU6ugF; 1.4 date 2024.04.02.17.27.41; author adam; state Exp; branches; next 1.3; commitid OlcJFbgS0s9WRA4F; 1.3 date 2023.12.07.17.34.27; author adam; state Exp; branches; next 1.2; commitid 0YxqVZxBLaIsFyPE; 1.2 date 2023.03.15.13.30.35; author adam; state Exp; branches; next 1.1; commitid jHJoWi1aJW8WTdhE; 1.1 date 2018.10.16.16.37.21; author leot; state Exp; branches; next ; commitid GWGlradqbFIrIcWA; desc @@ 1.11 log @cmake: updated to 4.5.0 CMake 4.5 Release Notes *********************** Changes made since CMake 4.4 include the following. New Features ============ Diagnostics ----------- * The "CMD_NON_TARGET_DIRECTIVE" diagnostic category was added to diagnose commands that affect the directory scope when comparable target-specific commands exist. The use of such directives is discouraged. This diagnostic may be controlled with the "-Wnon- target-directive" command-line option, the "nonTargetDirective" field in a "CMake Presets" "warnings" object, or the "cmake_diagnostic()" command. * The "CMD_STRICT" diagnostic category was added to control diagnostics regarding allowed but discouraged usage as a group. This diagnostic may be controlled with the "-Wstrict" command-line option, the "strict" field in a "CMake Presets" "warnings" object, or the "cmake_diagnostic()" command. Presets ------- * "cmake-presets(7)" files now support schema version 13. * "cmake-presets(7)" gained the "${configurePresetName}" macro to expand to the name of the configure preset associated with the preset being evaluated. It is available for configure, build, test, and package presets, but not for workflow presets. File-Based API -------------- * The "cmake-file-api(7)" "codemodel" version 2 "version" field has been updated to 2.12. * The "cmake-file-api(7)" "codemodel" version 2 "target" object gained a new "interfaceIncludes" array field. Instrumentation --------------- * The "cmake-instrumentation(7)" data version has been updated to 1.2. * "cmake-instrumentation(7)" now records an overall "cmakeBuild" snippet even when a "cmake --build" invocation is interrupted by the user (for example with Ctrl+C). The snippet includes a new "interruptSignal" field, recording the signal that interrupted the build, so that consumers can distinguish an interrupted build from one that ran to completion. * "cmake-instrumentation(7)" now records an overall "cmakeInstall" snippet, marked with the same "interruptSignal" field, when a "cmake --install" invocation is interrupted by the user. * "cmake-instrumentation(7)" now records an overall "ctest" snippet, marked with the same "interruptSignal" field, when a "ctest(1)" invocation is interrupted by the user. On interrupt CTest stops scheduling further tests and preserves its checkpoint file so that a later "ctest -F" can resume the interrupted test set. Generators ---------- * The Ninja Generators, Makefile Generators, and "FASTBuild" generator now provide "install_prep/all" and "install_prep/" convenience build targets by default. The "CMAKE_SKIP_INSTALL_PREP_TARGETS" variable may be enabled to skip generating them. These targets build all known build dependencies for an installation that does not select a component, or for the named install component, respectively. This includes targets that produce installed C++ module BMIs, module export metadata, or generated files. See Install Preparation Targets. * The "FASTBuild" generator and the Makefile Generators now provide "test_prep/" and "test_prep/all" convenience build targets by default. The "CMAKE_SKIP_TEST_PREP_TARGETS" variable may be enabled to skip generating them. These targets build the dependencies of tests added by "add_test()", including those listed with the "BUILD_DEPENDS" keyword. See Test Preparation Targets. * The Ninja Generators now provide "test_prep/" and "test_prep/all" convenience build targets build targets by default. The "CMAKE_SKIP_TEST_PREP_TARGETS" variable may be enabled to skip generating them. These targets were previously generated only if "CMAKE_TEST_BUILD_DEPENDS" was enabled. See Test Preparation Targets. * Makefile Generators and Ninja Generators gained support for adding a linker launcher with "CUDA" and "HIP". See the "CMAKE__LINKER_LAUNCHER" variable and "_LINKER_LAUNCHER" target property for details. Languages --------- * "import std" is now available for all C++ 20 and later code with "CXX_SCAN_FOR_MODULES" enabled. Compilers --------- * The open-source DPC++ compiler, version 7.0 and newer, is now supported with "compiler id" "DPClang" for languages "C" and "CXX". Command-Line ------------ * The "cmake -E capabilities" output now includes an "instrumentation" object reporting the supported instrumentation API version and the latest supported data version. * The "cmake --list-presets" option gained "*-defined" values that list all non-hidden presets of the corresponding type and explain why unavailable presets cannot be used. The "defined" value is an alias for "configure-defined", while "all-defined" selects every type. Build, test, and package presets whose configure preset is unavailable are now considered unavailable too. * The "cmake --build --list-presets=defined", "ctest --list- presets=defined", and "cpack --list-presets=defined" options were added to list all defined build, test, and package presets, respectively. * The "cmake --workflow --list-presets=defined" option was added to provide the same availability information for all defined workflow presets and their steps. Commands -------- * The "add_custom_rule()" command was added to allow the definition of pattern rules. * The "add_dependencies()" command now accepts Alias Targets. Dependencies are added to the target the alias references. * The "discover_tests()" command gained a "BUILD_DEPENDS" argument to support the "--out-of-date" behavior of "ctest(1)". * The "cmake_language(PRINT_PROPERTIES)" command was added to print CMake entities' properties in human-readable form for debugging. * The "cmake_language(PRINT_TARGETS)" command was added to print the targets that currently exist in human-readable form for debugging. * The "cmake_language(PRINT_VARIABLES)" command was added to print variables and their values in human-readable form for debugging. * The "file(ARCHIVE_CREATE)" command gained a "PATTERNS_EXCLUDE" option to omit files and directories matching the given patterns from the created archive. * The "file(ARCHIVE_EXTRACT)" command gained a "PATTERNS_EXCLUDE" option to omit archive entries matching the given patterns from being extracted or listed. * The "file(GET_RUNTIME_DEPENDENCIES)" command is now implemented on FreeBSD. * The "find_package()" command now supports importing Common Package Specification *executable* components. * The "function()" command now sets the "ARGNC" variable, which holds the number of arguments past the last expected argument. * The "if()" command gained a "PATH_IS_PREFIX" operator to test whether one path is a prefix of another without accessing the filesystem. See policy "CMP0222". * The "if()" command gained a "RULE" operator to check if a rule exists. * The "install()" and "export()" commands now accept Alias Targets. The commands operate on the underlying aliased target. * The "install(SBOM)" and "export(SBOM)" commands were added to generate Software Bill of Materials (SBOM) files. * The "install(TARGETS)" command no longer requires a "LIBRARY DESTINATION" for Module Libraries. When no destination is given, a module library is installed to the default "RUNTIME" destination on DLL platforms and to the default "LIBRARY" destination on other platforms. * The "install(TARGETS)" command gained a "RUNTIME_DEPENDENCY_TARGETS" option to install runtime artifacts of non-imported shared libraries from the same build that the named targets link to. Unlike "RUNTIME_DEPENDENCIES", this uses CMake target graph information rather than "file(GET_RUNTIME_DEPENDENCIES)". The option cannot be used with "EXPORT" and may only install runtime artifacts. * The "install()" command's "FILES", "PROGRAMS", "DIRECTORY", "SCRIPT", and "CODE" signatures gained a "BUILD_DEPENDS" option to specify targets or files needed to prepare files or run installation code. See Install Preparation Targets. * The "math()" command gained new "INCREMENT" and "DECREMENT" modes. * The "project()" and "enable_language()" commands, when called in subdirectories, now propagate support for enabled languages to all ancestor scopes up to the top-level directory, including through enclosing "block()" and "function()" scopes. See policy "CMP0220". * The "set_property()" and "get_property()" commands now support RULE properties. * The "set_property()" and "set_target_properties()" commands now accept Alias Targets. Properties are set on the target which the alias references. * The "string(JSON)" command gained an "ARRAY_SPLIT" mode that splits a JSON array into a list of its elements with a single parse, enabling linear-time array iteration instead of re-parsing the whole JSON string for each element. * The "target_compile_definitions()", "target_compile_features()", "target_compile_options()", "target_include_directories()", "target_link_directories()", "target_link_libraries()", "target_link_options()", "target_precompile_headers()", and "target_sources()" commands now accept Alias Targets. The command operates on the target the alias references. File Sets --------- * Common Package Specification import by "find_package()", and export by "install(PACKAGE_INFO)" and "export(PACKAGE_INFO)", now support header file sets. * The "source_group()" command gained support for file sets. * The "FILE_SET_TYPES", "FILE_SETS_", and "INTERFACE_FILE_SETS_" target properties were added to get information about file sets attached to the target. * The "LANGUAGE" file set property was added to select the compile language for members of a "SOURCES" file set without modifying their "LANGUAGE" source file property. * The "SOURCE_GROUP" file set property and "SOURCE_GROUP" source file property were added to provide a fine grain control over the grouping of sources. Variables --------- * The "CMAKE_CXX_STDLIB_MODULES_JSON" variable was added to set the path to the "import std" metadata file for the standard library rather than using the compiler to discover its location. * The "CMAKE_INSTALL_SBOM_FORMATS" variable was added to enable Software Bill of Materials (SBOM) generation. * The "CMAKE_TEST_BUILD_DEPENDS" variable is no longer honored. Test preparation targets are now enabled by default. The "CMAKE_SKIP_TEST_PREP_TARGETS" variable may be enabled to skip generating them. Environment Variables --------------------- * The "CMAKE_SYSTEM_ENVIRONMENT_ID" environment variable was added to hint to "cmake(1)" when "--fresh" may be necessary, along with "CMAKE_SYSTEM_ENVIRONMENT_ACTION" to control what happens when "CMAKE_SYSTEM_ENVIRONMENT_ID" changes. Properties ---------- * The "CMAKE_COMPILE_WRAPPER_" and "CMAKE_LINK_WRAPPER_" global properties were added alongside the "COMPILE_WRAPPERS", "LINK_WRAPPERS", "INTERFACE_COMPILE_WRAPPERS", and "INTERFACE_LINK_WRAPPERS" target properties. Together, for the Makefile Generators and Ninja Generators, they support wrapping compile and link commands for a given target or its consumers with arbitrary command lines. * The "CMAKE_TEST_BUILD_DEPENDS" directory property was added to support directory-scoped build time dependencies for tests. * The "Fortran_BUILDING_INTRINSIC_MODULES" target property is now honored by the Ninja Generators. Previously it was only honored by the Makefile Generators. * The "Swift_MODULE_NAME" target property is now honored by the "Xcode" generator. See policy "CMP0226". * The "TEST_INCLUDE_FILES" and "TEST_INCLUDE_FILE" directory properties now support "generator expressions" in the include path. On multi-config generators a "$"-parameterized path can select a different script per configuration. * The "XCODE_EMBED_" target property now supports "generator expressions". Because Xcode shares one copy-files build phase across all configurations, an expression whose result depends on the configuration is rejected with an error. Modules ------- * The "ExternalProject" module's "ExternalProject_Add()" command now sets "CMAKE_INSTALL_PREFIX" to the external project's "INSTALL_DIR" in its default configure command, so a CMake external project installs into the prefix the module reserves for it rather than the built-in default (e.g. "/usr/local"). A caller-supplied prefix still takes precedence. See policy "CMP0225". * The "FindCUDAToolkit" module now creates "CUDAToolkit::" namespace targets and changes the existing "CUDA::" namespace targets to be alias targets. * The "FindDoxygen" module "doxygen_add_docs()" command gained a "USES_TERMINAL" option to give the Doxygen command direct access to the terminal during the build. * The "FindPython", "FindPython2", and "FindPython3" modules gained the possibility to override the "CMAKE_CROSSCOMPILING_EMULATOR" variable by respectively, the variables "Python_CROSSCOMPILING_EMULATOR", "Python2_CROSSCOMPILING_EMULATOR", and "Python3_CROSSCOMPILING_EMULATOR". * The "FindPython3" and "FindPython" modules gained, respectively, the variable "Python3_SOSABI_PLATFORM" and "Python_SOSABI_PLATFORM" which gives, on some platforms, for the Stable Application Binary Interface, the extension including the platform triplet. Generator Expressions --------------------- * The "$" generator expression was added to convert a semicolon- separated list into a comma-separated list. * The "$" generator expression was added to query directory properties. * The "$" generator expression was added to query global properties. * The "LIST" generator expression's "FILTER" and "TRANSFORM" operations gained a "PREDICATE" keyword that selects items by evaluating an arbitrary generator expression once per item, with "$<_0>" referring to the current item. "FILTER" also gained an explicit "REGEX" keyword. * The "LIST" generator expression's "SORT" operation gained a "COMPARATOR" option that orders items using an arbitrary generator expression evaluated once per comparison, with "$<_0>" and "$<_1>" referring to the two items being compared. * The "LIST" generator expression's "TRANSFORM" operation gained an "APPLY" action that evaluates an arbitrary generator expression for each element, with "$<_0>" referring to the current element. * The "$" generator expression feature is now supported on Linux with GNU-compatible linkers (GNU ld, gold, LLD, MOLD). * The "RULE_PROPERTY" generator expression was added to query properties of rules created by the "add_custom_rule()" command. Autogen ------- * "AUTOMOC" now processes C++ module interface and partition units that are members of a "FILE_SET" of type "CXX_MODULES". "moc" is run on such units and its generated output is compiled as a module implementation unit of the same module. This requires Qt 6.13 or newer, whose "moc" supports C++ module units. * "AUTOMOC" now has its generated "mocs_compilation.cpp" scanned for C++ module dependencies under the same conditions as the target's own sources. A header that imports a module may now be processed by "moc". CTest ----- * "ctest(1)" gained a "--out-of-date" option to run only tests whose recorded build dependencies are newer than the last time the tests ran. * "ctest(1)" now supports job server integration on Windows. * The "ctest(1)" "--show-only" option gained a "json-v1-raw" format in which the "value" for each test property is the original unparsed string value specified in CMake. * The "ctest_test()" and "ctest_memcheck()" commands gained the ability to accept more than one value for their "INCLUDE_LABEL" and "EXCLUDE_LABEL" options. When multiple regular expressions are given, a test is selected only if each expression matches at least one of the test's labels (i.e. the expressions form an "AND" relationship), matching the behavior of repeating the "ctest --label-regex" and "ctest --label-exclude" command-line options. * The "GENERATED_RESOURCE_SPEC_FILE" test property gained support for relative paths. * The "FIXTURE_REPEAT_MODE" test property was added to select how a test fixture behaves when "ctest(1)" repeats tests with its "-- repeat" option. See policy "CMP0224". * The "RESOURCE_ERROR_ACTION" test property and "CTEST_RESOURCE_ERROR_ACTION" variable were added to configure the test behavior in case of insufficient resources. CPack ----- * The "CPack APK Generator" was added to package Android applications as APK files. It drives the Android SDK build tools directly and does not require Gradle. Maven dependencies, such as the AndroidX libraries, can be downloaded with "CPACK_APK_MAVEN_DEPENDENCIES". Deprecated and Removed Features =============================== * The "Visual Studio 14 2015" generator has been removed. * The "CMakePrintHelpers" module's "cmake_print_properties()" command is now deprecated in favor of "cmake_language(PRINT_PROPERTIES)". * The "CMakePrintHelpers" module's "cmake_print_variables()" command is now deprecated in favor of "cmake_language(PRINT_VARIABLES)". * The "install_files()", "install_programs()", "install_targets()", "make_directory()", "remove()", "subdirs()" and "write_file()" commands, which have been deprecated since CMake 3.0, now emit deprecation diagnostics when used. Other Changes ============= * The "cmake --build" command now groups the output of each recipe in a parallel build so that concurrent jobs do not interleave, when CMake is the one passing the parallel flag to the build tool (via " --parallel" or "CMAKE_BUILD_PARALLEL_LEVEL") and that tool is GNU Make 4.0 or newer. Request parallelism natively, e.g. "cmake --build . -- -j", to opt out and stream output as it is produced. * The "cmake --install" command now reports a non-zero exit code when an install script fails. Previously, a parallel install (enabled by the "INSTALL_PARALLEL" global property) always reported success, and a serial install could lose the failure of an earlier component that exited via "cmake_language(EXIT)" when a later component succeeded. * The "cmake_host_system_information()" command's "DISTRIB_*" queries now read the host os-release by default. See policy "CMP0221". A new "FROM_SYSROOT " option explicitly enables or disables reading the target os-release from "CMAKE_SYSROOT". * The "cmake_path(IS_PREFIX)" command and the "$" generator expression no longer treat an empty path as a prefix of every path. The "if()" command's "PATH_IS_PREFIX" operator follows the same rule. See policy "CMP0223". * When CTest build launchers are enabled (see the "CTestUseLaunchers" module), a build rule that is terminated by a signal is now reported as a build failure. Previously such a rule was reported as success, so a crashed compiler, linker, or custom command could be recorded as a passing build on the dashboard. * The "ALIASED_TARGET" target property is now read-only. * The Qt Help (".qch") rendition of the documentation now carries its own color scheme. Previously it was rendered with layout rules only, because the "qthelp" builder does not generate the color scheme that the HTML documentation uses. A dark variant is shipped alongside it, which help viewers such as Qt Creator use when their own theme is dark. * The precompiled macOS binary provided on "cmake.org" now requires macOS 11 or newer for command-line tools. The "cmake-gui(1)" application still requires macOS 12. @ text @$NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.10 2026/07/16 11:14:00 adam Exp $ Don't insist on ncurses. --- Source/Checks/Curses/CMakeLists.txt.orig 2026-11-12 16:22:58.000000000 +0000 +++ Source/Checks/Curses/CMakeLists.txt @@@@ -1,7 +1,6 @@@@ cmake_minimum_required(VERSION 3.13...4.3 FATAL_ERROR) project(CheckCurses C) -set(CURSES_NEED_NCURSES TRUE) find_package(Curses) if(NOT Curses_FOUND) return() @ 1.10 log @cmake cmake-gui: updated to 4.4.0 4.4.0 CMake diagnostic actions are now tracked in a new state type managed by the “cmake_diagnostic()” command. The new system introduces several new diagnostic categories. “macro()” invocations now preserve backslashes in arguments. See policy “CMP0219”. “cmake(1)”, “ctest(1)”, and “cpack(1)” gained “–presets-file” arguments to support loading “presets” from the specified file. The Ninja Generators now support generating a build target named “test_prep/” for each test added by “add_test()”, which builds all dependencies for that test. This behavior is enabled by the new “CMAKE_TEST_BUILD_DEPENDS” variable. “cmake –install” now supports installing multiple components. The “discover_tests()” command was added to support registering tests discovered at test time by “ctest(1)”. It runs a user-provided discovery command, parses its output, and generates test names, arguments, and properties from regular-expression captures. The “execute_process()” command gained “ENVIRONMENT” and “ENVIRONMENT_MODIFICATION” options to run child processes with a modified environment. A “SOURCES” file set type was added to specify a target’s source files via file sets. The “SCOPE”, “TYPE”, “BASE_DIRS”, “SOURCES”, and “INTERFACE_SOURCES” file set properties were added to provide the declared details of a file set. The “CMakePackageConfigHelpers” module’s “write_basic_package_version_file()” command now supports “SamePatchVersion”, “SameFullVersion”, and “SemanticVersion” compatibility modes. “ctest(1)” gained support for forwarding extra arguments to test executables using a “–” separator. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.9 2026/03/26 09:00:32 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2026-07-09 17:24:15.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...4.2 FATAL_ERROR) @ 1.9 log @cmake: updated to 4.3.0 Some of the most significant changes in CMake 4.3 are: Support for importing and exporting packages described using the Common Package Specification (CPS) was added. “cmake-instrumentation(7)” was added to enable collection of timing data, target information, and system diagnostic information during the configure, generate, build, test, and install steps of a CMake project “cmake –build” now supports specifying a build directory and preset together. The build preset will be used with the explicit build directory substituted. The “cmake -E bin2c” command-line tool was added. CMake archive operations gained support for multithreading, compression levels, and new compression methods. The “get_property()” and “set_property()” commands now support a “FILE_SET” scope for file set properties of a target. The “CMAKE__LINK_FLAGS” and “CMAKE__LINK_FLAGS_” variables were added to support per-language link flags for all target types. “$” generator expressions were added for query, generation, and transformation operations on strings. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.8 2025/12/21 19:24:08 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2026-03-17 13:29:16.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...4.1 FATAL_ERROR) @ 1.8 log @cmake cmake-gui: updated to 4.2.1 4.2.1 Changes made since CMake 4.2.0: MSVC: Restore pre-4.2 default PDB paths ci: Update CMake version to 4.2.0 VS/Android: Use ApplicationTypeRevision 3.0 in VS2026 Tests/RunCMake/GeneratorToolset: Fix Visual Studio 18 2026 host arch on ARM64 Help: Fix CPack AppImage Generator heading capitalization Help: Add 4.2 release note for CPack AppImage generator ci: Tolerate sccache server stop failures on Windows Tests/TryCompile: Improve error message formatting ci: Fix LLVM/Clang nightly CI job tags on Windows ci: Enable c++modules shared libraries test on VS ARM64 jobs ci: Update Windows jobs to VS 2026 Source: Improve detection of Linux architectures requiring explicit libatomic ExternalProject: Fix environment modification ops named with underscores Emscripten: Restore placement of source files on compile command-lines Emscripten: Drop hard-coded -fPIC flag Tests/RunCMake/Emscripten: Add tests covering try_compile COPY_FILE ci: Make node available to Emscripten tests Emscripten: Fix try_run to run the `.js` file and not the adjacent `.wasm` Emscripten: Provide CMAKE__COMPILER_ARCHITECTURE_ID StdIo: Restore Windows Console I/O modes on Ctrl-C Help: Replace QtCreator link with its permanent redirect VS: Restore support for VS 2019 with toolset v142 versions before 14.29 FASTBuild: Add internal helper for intermediate directory creation FASTBuild: Fix default MSVC compiler PDB paths Help: Add 4.2 release note about VS flag suppression fileAPI: Silently ignore non-target order dependencies Help: Document Renesas compiler toolchain CPS: Fix exporting definitions cmExportCommand: Fix PACKAGE_INFO argument parsing CPS: Fix exporting definitions in CMake 4.1 export: Improve error message consistency cmake_file_api: Improve error message consistency LLVMFlang-Fortran: Use -J instead of -module-dir export: Fix exporting targets with multiple file sets Some of the most significant changes in CMake 4.2 are: The “Visual Studio 18 2026” generator was added. The “FASTBuild” generator was added. CMake now supports Cross Compiling for Emscripten with simple toolchain files. The “set(CACHE{})” and “unset(CACHE{})” commands were added to explicitly set and unset cache entries. The “INSTALL_OBJECT_NAME” source file property was added to control names of installed object files for specific compiled sources. Nearly all find modules now provide a “_VERSION” result variable matching the casing of its module name. Existing variants such as “_VERSION_STRING” and uppercased “_VERSION” are deprecated. See documentation of each find module for details. The “ExternalProject” module’s “ExternalProject_Add()” and “ExternalProject_Add_Step()” commands now provide options to set environment variables on the configure, build, install, and test steps. The “Visual Studio 14 2015” generator is now deprecated and will be removed in a future version of CMake. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.7 2025/08/20 11:34:12 wiz Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2025-12-08 18:33:58.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...4.0 FATAL_ERROR) @ 1.7 log @cmake: update to 4.1.0. New Features File-Based API The cmake-file-api(7) "codemodel" version 2 version field has been updated to 2.8. The cmake-file-api(7) "codemodel" version 2 "target" object gained a new debugger field. Command-Line The cmake --link-no-warning-as-error option was added to suppress the effects of the LINK_WARNING_AS_ERROR target property and CMAKE_LINK_WARNING_AS_ERROR variable. The cmake --project-file option was added to specify an alternate filename for CMakeLists.txt files. This is intended for temporary use by developers during an incremental transition and not for publication of a final product. CMake will always emit a warning when the project file is anything other than CMakeLists.txt. Commands The target_link_libraries() command now supports the LINKER: prefix. Variables The AIX and CMAKE_HOST_AIX variables are now set to true when the target or host system is AIX, respectively. Linker flag variables learned to support the LINKER: prefix: CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS_ CMAKE_SHARED_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS_ CMAKE_MODULE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS_ See policy CMP0181. The CMAKE_EXECUTE_PROCESS_COMMAND_ERROR_IS_FATAL variable was added to specify the execute_process() command's default COMMAND_ERROR_IS_FATAL behavior. The CMAKE__LINK_MODE and CMAKE__DEVICE_LINK_MODE variables were added to provide information on how the link step is done. The CMAKE_LINK_WARNING_AS_ERROR variable and corresponding LINK_WARNING_AS_ERROR target property were added to link using a linker-specific flag to treat warnings as errors. The CMAKE_MSVC_RUNTIME_CHECKS variable and MSVC_RUNTIME_CHECKS target property were introduced to select runtime checks for compilers targeting the MSVC ABI. See policy CMP0184. The CMAKE_POLICY_VERSION_MINIMUM variable was added to help packagers and end users try to configure existing projects that have not been updated to work with supported CMake versions. The CMAKE_POLICY_VERSION_MINIMUM environment variable was added to initialize it. The CMAKE_UNITY_BUILD_RELOCATABLE variable and corresponding UNITY_BUILD_RELOCATABLE target property were added to make sources generated for CMAKE_UNITY_BUILD to #include the original source files using relative paths where possible. The CMAKE_XCODE_SCHEME_LLDB_INIT_FILE variable and corresponding XCODE_SCHEME_LLDB_INIT_FILE target property were added to tell the Xcode generator what to put in the scheme's "LLDB Init File" setting. The CMAKE_XCODE_SCHEME_TEST_CONFIGURATION variable and corresponding XCODE_SCHEME_TEST_CONFIGURATION target property were added to tell the Xcode generator what to put in the scheme's "Build Configuration" setting for the test action. Properties The DEBUGGER_WORKING_DIRECTORY target property and corresponding CMAKE_DEBUGGER_WORKING_DIRECTORY variable were added to tell generators what debugger working directory should be set for targets. The STATIC_LIBRARY_OPTIONS target property now supports an ARCHIVER: prefix to pass options to the archiver through the compiler driver in a portable way. The Swift_MODULE_DIRECTORY target property now supports generator expressions. The VS_CUSTOM_COMMAND_DISABLE_PARALLEL_BUILD source file property was added to tell Visual Studio Generators not to run a custom command in parallel. The VS_SOLUTION_ITEMS directory property was added to tell Visual Studio Generators to attach files directly to the Solution (.sln). Modules The ExternalData module gained a ExternalData_HTTPHEADERS variable to specify HTTP headers. The ExternalProject module's ExternalProject_Add() command gained an INSTALL_JOB_SERVER_AWARE option to enable integration of the GNU Make job server when using an explicit INSTALL_COMMAND with Makefile Generators. The FeatureSummary module add_feature_info() command now supports full Condition Syntax. See policy CMP0183. The FindBISON module bison_target() command gained an OPTIONS option to specify Bison command-line options. The FindCURL module now provides a CURL_VERSION result variable to match upstream cURL's CMake package. The FindFLEX module flex_target() command gained an OPTIONS option to specify Flex command-line options. The FindPatch module now supports running in cmake -P script mode by skipping the creation of the imported target. The FindProtobuf module protobuf_generate() command gained a PROTOC_EXE option to specify a custom protoc executable. The FindPython, FindPython2, and FindPython3 modules gained the possibility to do multiple calls in the same directory by using, respectively, the variables Python_ARTIFACTS_PREFIX, Python2_ARTIFACTS_PREFIX, and Python3_ARTIFACTS_PREFIX. The FindRuby module learned to find rbenv-provided installations. Generator Expressions The $ generator expression gained the NATIVE_PATH operation to convert a CMake path into a native one. CTest The ctest --interactive-debug-mode option on Windows now enables Windows Error Reporting by default in test processes, allowing them to creating debug popup windows and core dumps. This restores behavior previously removed by CMake 3.11 after updates to libuv made it possible. CPack The CPack Archive Generator learned to generate .tar packages without compression. The CPack Archive Generator now honors the CPACK_ARCHIVE_FILE_NAME variable for all packages. Previously, this variable worked only for component-based packages. Deprecated and Removed Features Compatibility with versions of CMake older than 3.5 has been removed. Calls to cmake_minimum_required() or cmake_policy() that set the policy version to an older value now issue an error. Note that calls to those commands can still support older versions of CMake by using their VERSION arguments' ... syntax. This requires only the version of CMake, but when running a newer version, sets policies up to the version. The Visual Studio 14 2015 and Visual Studio 15 2017 generators no longer support specifying a platform as part of the generator name. See Visual Studio Platform Selection. The CMAKE__USING_LINKER_MODE variable is no longer used to determine the type of the contents of the CMAKE__USING_LINKER_ variable. The CMAKE__LINK_MODE variable, set by CMake, is used instead. The FindGDAL module is now deprecated in favor of upstream GDAL's official CMake package configuration file. Port projects to the latter by calling find_package(GDAL CONFIG). For further details, see GDAL's documentation on CMake integration. The FindRuby module no longer provides variables with the upper-case RUBY_ prefix. See policy CMP0185. CTest's undocumented declarative scripting mode has been removed. This mode used to be triggered by a ctest -S script which did not call any CTest Commands unless CTEST_RUN_CURRENT_SCRIPT was explicitly set to OFF. The ctest_run_script() command may no longer be called without any arguments. Other Changes On macOS with Ninja Generators and Makefile Generators, when a compiler is found in /usr/bin, it is now used as-is and is no longer mapped to the corresponding compiler inside Xcode. The mapping was introduced by CMake 3.2 to allow build trees to continue to work with their original compiler even when xcode-select switches to a different Xcode installation. However, the compilers inside Xcode cannot be used without explicit -isysroot flags and are therefore not suitable for passing to arbitrary third-party build systems. Furthermore, the mapping behavior can override user-specified compiler paths. Therefore, this behavior has been reverted. In builds targeting macOS, CMAKE_OSX_SYSROOT now defaults to empty, deferring to the compiler's default macOS SDK selection. In order to pass an explicit macOS SDK via the compiler's -isysroot flag, users may configure their build tree with -DCMAKE_OSX_SYSROOT=macosx, or export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" in their environment. Notes: macOS compilers in /usr/bin, when not invoked with -isysroot, search for headers in /usr/local/include before system SDK paths, matching the convention on many platforms. Users on macOS-x86_64 hosts with Homebrew installed in /usr/local should pass an explicit SDK, as described above, when not building with Homebrew tools. Some Clang compilers have no default macOS SDK selection. For these, if CMAKE_OSX_SYSROOT is empty, CMake will automatically pass -isysroot with the macOS SDK printed by xcrun --show-sdk-path. On Windows, file paths named in project code, e.g., in CMakeLists.txt, are no longer automatically converted to their on-disk upper/lower case. Projects are expected to spell source file paths consistently using their canonical case, e.g., in calls to add_library(), set_property(SOURCE), or set_source_files_properties(). This matches the behavior on platforms with case-sensitive filesystems. On AIX, SHARED library targets now produce a shared library archive by default. See policy CMP0182. The cmake --preset command no longer outputs a summary of the preset's CMake cache and environment variables by default. That summary is now only shown when the message log level is set to VERBOSE, DEBUG, or TRACE via the cmake --log-level option or the CMAKE_MESSAGE_LOG_LEVEL cache variable. Precompiled SunOS sparc64 and x86_64 binaries are now provided on cmake.org. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.6 2024/11/10 19:58:31 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2025-08-05 14:55:57.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...3.31 FATAL_ERROR) @ 1.6 log @cmake cmake-gui: updated to 3.31.0 CMake 3.31 Release Notes ************************ Changes made since CMake 3.30 include the following. New Features ============ Presets ------- * "cmake-presets(7)" files may now include comments using the key "$comment" at any level within the JSON object to provide documentation. * "cmake-presets(7)" files may now request graphviz output using the "graphviz" key in a configure preset. Generators ---------- * The Ninja Generators and Makefile Generators now produce a "codegen" build target. See policy "CMP0171". It drives a subset of the build graph sufficient to run custom commands created with "add_custom_command()"'s new "CODEGEN" option. Command-Line ------------ * The "cmake --workflow" mode now accepts a preset name as the first argument, allowing the simpler command line "cmake --workflow ". * The "cmake -LR[A][H]" option was added to list cache entries whose names match a regular expression. Compilers --------- * The LFortran compiler is now supported with "compiler id" "LFortran". Commands -------- * The "add_custom_command()" command gained a "CODEGEN" option to mark a custom command's outputs as dependencies of a "codegen" target. See policy "CMP0171". * The "cmake_pkg_config()" command was added as an endpoint for using CMake's native pkg-config format parser. The only supported option in this release is "EXTRACT", which provides low-level access to the values produced by parsing a pkg-config file. For most users, this is not yet a suitable replacement for the "FindPkgConfig" module. * The "file(ARCHIVE_CREATE)" command gained a "WORKING_DIRECTORY" option to specify a working directory for the archiving process. * The "file(MAKE_DIRECTORY)" command gained a "RESULT" option to capture failure in a result variable. * The "install(FILES)" and "install(DIRECTORY)" commands' "TYPE" argument gained support for a "LIBEXEC" type. Variables --------- * The "CMAKE_AIX_SHARED_LIBRARY_ARCHIVE" variable and corresponding "AIX_SHARED_LIBRARY_ARCHIVE" target property were added to create shared libraries on AIX as shared library archives. * The "CMAKE_EXPORT_BUILD_DATABASE" variable, a corresponding "CMAKE_EXPORT_BUILD_DATABASE" environment variable, and an "EXPORT_BUILD_DATABASE" target property, were added to enable exporting C++ module compile commands. This is only supported with Ninja Generators. * The "CMAKE_HOST_EXECUTABLE_SUFFIX" variable was added to provide the suffix for executable names on the host platform. * The "CMAKE__HOST_COMPILER_ID" and "CMAKE__HOST_COMPILER_VERSION" variables were added, where "" is either "CUDA" or "HIP". They are populated when "CMAKE__COMPILER_ID" is "NVIDIA" to identify NVCC's host compiler. * The "CMAKE__STANDARD_LINK_DIRECTORIES" variable was added. Toolchain files can set this variable to control which link library directory paths are always passed to the compiler for the specified language. * The "CMAKE_LINK_LIBRARIES_STRATEGY" variable and corresponding "LINK_LIBRARIES_STRATEGY" target property were added to optionally specify the strategy CMake uses to generate link lines. Properties ---------- * The "MACOSX_FRAMEWORK_BUNDLE_NAME" target property was added to set the "CFBundleName" key in an Apple "FRAMEWORK"'s "Info.plist" file. * The "UNITY_BUILD" target property now supports the "CUDA" language. * The "VS_FRAMEWORK_REFERENCES" target property was added to tell Visual Studio Generators to add framework references. Modules ------- * Check modules now support a "CMAKE_REQUIRED_LINK_DIRECTORIES" variable. The following modules gained this support: * "CMakePushCheckState" * "CheckCCompilerFlag" * "CheckCSourceCompiles" * "CheckCSourceRuns" * "CheckCXXCompilerFlag" * "CheckCXXSourceCompiles" * "CheckCXXSourceRuns" * "CheckCXXSymbolExists" * "CheckCompilerFlag" * "CheckFortranCompilerFlag" * "CheckFortranFunctionExists" * "CheckFortranSourceCompiles" * "CheckFortranSourceRuns" * "CheckFunctionExists" * "CheckIncludeFile" * "CheckIncludeFileCXX" * "CheckIncludeFiles" * "CheckOBJCCompilerFlag" * "CheckLibraryExists" * "CheckOBJCCompilerFlag" * "CheckOBJCSourceCompiles" * "CheckOBJCSourceRuns" * "CheckOBJCXXCompilerFlag" * "CheckOBJCXXSourceCompiles" * "CheckOBJCXXSourceRuns" * "CheckPrototypeDefinition" * "CheckSourceCompiles" * "CheckSourceRuns" * "CheckStructHasMember" * "CheckSymbolExists" * "CheckTypeSize" * "CheckVariableExists" * The "CMakePackageConfigHelpers" module's "generate_apple_platform_selection_file()" function gained support for iOS Mac Catalyst. * The "GoogleTest" module "gtest_discover_tests()" command gained a new "DISCOVERY_EXTRA_ARGS" keyword. It allows extra arguments to be appended to the command line when querying for the list of tests. * The "FindCUDAToolkit" module now provides a "CUDA::nvml_static" target. * The "FindOpenMP" module gained support for the "CUDA" language. CTest ----- * The "ctest_submit()" command and "ctest -T Submit" step now verify TLS server certificates for connections to "https://" URLs by default. See the "CTEST_TLS_VERIFY" variable for details. * The "ctest_submit()" command and "ctest -T Submit" step now require TLS 1.2 or higher for connections to "https://" URLs by default. See the "CTEST_TLS_VERSION" variable for details. CPack ----- * The "CPack DEB Generator" gained a "CPACK_DEBIAN_PACKAGE_MULTIARCH" option to support multi-arch packages. * The "CPack IFW Generator" gained the new "CPACK_IFW_PACKAGE_PRODUCT_IMAGE_URLS" variable to specify images associated with entries of "CPACK_IFW_PACKAGE_PRODUCT_IMAGES". This feature is available for QtIFW 4.0 and newer. * The "CPack RPM Generator" gained support for "zstd" as a "CPACK_RPM_COMPRESSION_TYPE" value. * The "CPack" module enables per-machine installation by default in the "CPack WIX Generator". See policy "CMP0172" and the "CPACK_WIX_INSTALL_SCOPE" variable. Deprecated and Removed Features =============================== * Compatibility with versions of CMake older than 3.10 is now deprecated and will be removed from a future version. Calls to "cmake_minimum_required()" or "cmake_policy()" that set the policy version to an older value now issue a deprecation diagnostic. * The "CMakeFindFrameworks" module has been deprecated via "CMP0173". Projects should use "find_library()" instead. * The "Visual Studio 12 2013" generator has been removed. Other Changes ============= * When static libraries on link lines are de-duplicated (by policy "CMP0156"), the first occurrence is now kept on all platforms. See policy "CMP0179". * Empty list elements in the "TEST_LAUNCHER" and "CROSSCOMPILING_EMULATOR" target properties are now preserved by: * The "add_test()" command. * The "ExternalData_Add_Test()" command from the "ExternalData" module. * The "gtest_add_tests()" and "gtest_discover_tests()" commands from the "GoogleTest" module. Empty list elements after the "EXTRA_ARGS" keyword of these two commands are also now preserved. See policy "CMP0178". * The "execute_process()" command's "ENCODING" option, meaningful on Windows, now defaults to "UTF-8". See policy "CMP0176". * The "file(DOWNLOAD)" and "file(UPLOAD)" commands now verify TLS server certificates for connections to "https://" URLs by default. See the "CMAKE_TLS_VERIFY" variable for details. This change was made without a policy so that users are protected even when building projects that have not been updated. Users may set the "CMAKE_TLS_VERIFY" environment variable to "0" to restore the old default. * The "file(DOWNLOAD)" and "file(UPLOAD)" commands now require TLS 1.2 or higher for connections to "https://" URLs by default. See the "CMAKE_TLS_VERSION" variable for details. * The "file(GET_RUNTIME_DEPENDENCIES)" command was updated to more closely match the dynamic loader's behavior on Linux. * The "install()" command's "DESTINATION" arguments are now normalized, with the exception of "INCLUDES DESTINATION" arguments in "install(TARGETS)". See policy "CMP0177". * The "project()" command now always sets "_SOURCE_DIR", "_BINARY_DIR", and "_IS_TOP_LEVEL" as both normal variables and cache entries. See policy "CMP0180". * The "cmake_parse_arguments(PARSE_ARGV)" command now defines a variable for an empty string after a single-value keyword. See policy "CMP0174". @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.5 2024/07/04 06:06:22 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2024-11-06 13:41:37.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...3.29 FATAL_ERROR) d13 1 a13 1 if(NOT CURSES_FOUND) @ 1.5 log @cmake cmake-gui: updated to 3.30.0 CMake 3.30 Release Notes ************************ Changes made since CMake 3.29 include the following. New Features ============ Presets ------- * "cmake-presets(7)" files now support schema version "9". "include" fields now expand all macros except "$env{}" and preset-specific macros, i.e., those derived from the fields inside a preset's definition. File-Based API -------------- * The "cmake-file-api(7)" "cmakeFiles" version 1 object's "version" field has been updated to 1.1. It gained a "globsDependent" field to report "file(GLOB)" calls using "CONFIGURE_DEPENDS". Generators ---------- * Visual Studio Generators now add "UseDebugLibraries" indicators to ".vcxproj" files to denote which configurations are debug configurations. See policy "CMP0162". Languages --------- * The "Compile Features" functionality now implements support for the "cxx_std_26" and "cuda_std_26" meta-features to indicate that the compiler mode must be at least C++26. These meta-features were first documented by CMake 3.25, but were not fully implemented. Commands -------- * The "add_library()" command, on platforms that do not support shared libraries, now rejects creation of shared libraries instead of automatically converting them to static libraries. See policy "CMP0164". * The "enable_language()" command now fails with an error if it is called before the first "project()" call. See policy "CMP0165". * The "file(DOWNLOAD)" and "file(UPLOAD)" commands gained a "TLS_VERSION " option to specify the minimum TLS version for connections to "https://" URLs. Variables --------- * The "CMAKE__STANDARD_LATEST" variable was added to describe the latest "" language standard CMake supports for the selected compiler. * The "CMAKE_TLS_VERIFY" environment variable was added as a fallback to the existing "CMAKE_TLS_VERIFY" variable. It specifies whether to verify the server certificate for "https://" URLs by default. * The "CMAKE_TLS_VERSION" variable and "CMAKE_TLS_VERSION" environment variable were added to specify a default minimum TLS version for connections to "https://" URLs by the "file(DOWNLOAD)" and "file(UPLOAD)" commands. * The "CMAKE_VS_USE_DEBUG_LIBRARIES" variable and corresponding "VS_USE_DEBUG_LIBRARIES" target property were added to explicitly control "UseDebugLibraries" indicators in ".vcxproj" files. Properties ---------- * The "GENERATED" source file property is now visible in all directories. See policy "CMP0163". Policy "CMP0118"'s documentation has been revised to describe its actual effects. * The "PROPAGATE_TOP_LEVEL_INCLUDES_TO_TRY_COMPILE" global property can be used to propagate "CMAKE_PROJECT_TOP_LEVEL_INCLUDES" into "try_compile()" calls that use the whole-project signature. This is primarily intended as a way for dependency providers to be enabled in such "try_compile()" calls. * A "VS_FILTER_PROPS" target property was added to tell Visual Studio Generators to use a custom MSBuild filter ".props" file. Modules ------- * The "ExternalProject" module's "ExternalProject_Add()" command gained a "TLS_VERSION " option, and support for the "CMAKE_TLS_VERSION" variable and "CMAKE_TLS_VERSION" environment variable, to specify the minimum TLS version for connections to "https://" URLs. * The "FindBacktrace" module now provides an imported target. * The "FindBLAS" and "FindLAPACK" modules gained support for "libblastrampoline". * The "FindCUDAToolkit" module now provides a target for "libnvfatbin" and "libnvfatbin_static", if found. * The "FindCUDAToolkit" module now searches the "CMAKE_CUDA_COMPILER" variable and the "CUDACXX" environment variable even when the "CUDA" language isn't enabled. * The "FindOpenMP" module gained an "OpenMP_RUNTIME_MSVC" option to control the OpenMP runtime used with MSVC. * The "FindPython" and "FindPython3" modules gained support for the free threaded Python version. * The "FindPython", "FindPython2", and "FindPython3" modules, on Windows, now offer better support for the Python debug variant: * new variables: * "Python_EXECUTABLE_DEBUG" * "Python_INTERPRETER" * "Python_DEBUG_POSTFIX" * new targets: * "Python::InterpreterDebug" * "Python::InterpreterMultiConfig" The "python_add_library()" command now manages the "DEBUG_POSTFIX" target property based on the value of the "Python_DEBUG_POSTFIX" variable. Generator Expressions --------------------- * The "_COMPILER_FRONTEND_VARIANT" family of generator expressions were added to access the value of the associated "CMAKE__COMPILER_FRONTEND_VARIANT" variables. * Link features, as used with the "LINK_LIBRARY" generator expression, gained the ability to have attributes that describe their behavior by specifying the "CMAKE_LINK_LIBRARY__ATTRIBUTES" or "CMAKE__LINK_LIBRARY__ATTRIBUTES" variables. * The "QUOTE" generator expression was added to evaluate to """. * The "TARGET_PROPERTY" generator expression learned to evaluate custom transitive properties defined by new "TRANSITIVE_COMPILE_PROPERTIES" and "TRANSITIVE_LINK_PROPERTIES" target properties. * The "TARGET_PROPERTY" generator expression now evaluates target properties "INTERFACE_LINK_OPTIONS", "INTERFACE_LINK_DIRECTORIES", and "INTERFACE_LINK_DEPENDS" correctly by following private dependencies of static libraries. See policy "CMP0166". CTest ----- * The "ctest_submit()" command and "ctest -T Submit" step gained "TLSVersion" and "TLSVerify" options to control negotiation with "https://" URLs. See the "CTEST_TLS_VERSION" and "CTEST_TLS_VERIFY" variables. CPack ----- * The "CPack Inno Setup Generator" is now available on non-Windows hosts. * The "CPack NuGet Generator" gained the "CPACK_NUGET_PACKAGE_README", "CPACK_NUGET_PACKAGE_REPOSITORY_URL", "CPACK_NUGET_PACKAGE_REPOSITORY_TYPE", "CPACK_NUGET_PACKAGE_REPOSITORY_BRANCH", and "CPACK_NUGET_PACKAGE_REPOSITORY_COMMIT" variables. * The "CPack NuGet Generator" can now generate dependency groups for framework-specific dependencies. The "CPACK_NUGET_PACKAGE_TFMS" variable was added to specify a list of target framework monikers (TFMs) for which groups should be generated. * The "CPack WIX Generator" gained support for WiX Toolset v4. See the "CPACK_WIX_VERSION" variable. Deprecated and Removed Features =============================== * The "FindBoost" module has been removed by policy "CMP0167". Port projects to upstream Boost's "BoostConfig.cmake" package configuration file, for which "find_package(Boost)" now searches. * Calling "FetchContent_Populate()" with just the name of a dependency is now deprecated. Projects should call "FetchContent_MakeAvailable()" instead. See policy "CMP0169". Calling "FetchContent_Populate()" with full population details rather than just a dependency name remains fully supported. * The "Visual Studio 9 2008" generator has been removed. Other Changes ============= * The precompiled Windows ".msi" installers provided on cmake.org, when performing a fresh installation, now modify the system-wide "PATH" by default. When replacing an existing installation of 3.30 or later, the "PATH" modification preference is preserved by default. * The official ".zip" source archive provided on cmake.org now uses LF newlines, instead of CRLF newlines, for consistency with modern conventions. * The durations printed after "Configuring done" and "Generating done" messages now reflect time spent in generator-specific steps, and in a code model evaluation step at the beginning of generation that was not previously captured. Printed durations may appear longer than in previous versions of CMake, but are more accurate. * "FetchContent" now prefers to populate content directly rather than using a separate sub-build. This may significantly improve configure times on some systems (Windows especially, but also on macOS when using the Xcode generator). "cmake --fresh" also forces the download, update, and patch steps of directly populated dependencies to be re-executed. Policy "CMP0168" provides backward compatibility for those projects that still rely on using a sub-build for content population. * When "FETCHCONTENT_FULLY_DISCONNECTED" is set to true, "FetchContent_MakeAvailable()" and the single-argument form of "FetchContent_Populate()" require that the dependency's source directory has already been populated. CMake 3.29 and earlier did not check this requirement, but it is now enforced, subject to policy "CMP0170". @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.4 2024/04/02 17:27:41 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2024-07-02 14:40:35.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...3.28 FATAL_ERROR) @ 1.4 log @cmake: updated to 3.29.0 CMake 3.29 Release Notes ************************ Changes made since CMake 3.28 include the following. New Features ============ Command-Line ------------ * "cmake(1)" "-E cat" can now print the standard input by passing the "-" argument. Generators ---------- * Visual Studio Generators now support selecting between the Intel oneAPI Fortran compiler ("ifx") and the Intel classic Fortran compiler ("ifort") using a "fortran=" field in "CMAKE_GENERATOR_TOOLSET". File-Based API -------------- * The "cmake-file-api(7)" "codemodel" version 2 "version" field has been updated to 2.7. * The "cmake-file-api(7)" "codemodel" version 2 "target" object gained a new "launchers" field. Compilers --------- * The LLVM/Clang GNU-like frontend on Windows ("clang++") may now be used to compile "CUDA" language sources. * Compilers targeting the GNU ABI on Windows (MinGW) may now be used to compile Objective C ("OBJC") and Objective C++ ("OBJCXX"). These include GNU compilers ("gcc" and "g++") and the LLVM/Clang GNU-like frontends ("clang" and "clang++"). * TI Clang-based compilers are now supported with compiler id "TIClang". Commands -------- * The add_custom_command(TARGET) signature now supports adding build events through Alias Targets. * The "cmake_language(EXIT)" sub-command was added to terminate "cmake -P" scripts with a specified exit code. * The "export(SETUP)" sub-command was added to configure export sets. Its "TARGET" option's "XCFRAMEWORK_LOCATION" setting specifies the location of a ".xcframework" that can be substituted for an installed target. * The "if()" command gained new tests "IS_READABLE", "IS_WRITABLE" and "IS_EXECUTABLE" to check file or directory permissions. Variables --------- * The "CMAKE_INSTALL_PREFIX" environment variable was added to provide a default value for the "CMAKE_INSTALL_PREFIX" variable. * The "CMAKE_LINKER_TYPE" variable and corresponding "LINKER_TYPE" target property were added to specify what linker to use with some toolchains. * The "CMAKE__COMPILER_LINKER", "CMAKE__COMPILER_LINKER_ID", "CMAKE__COMPILER_LINKER_VERSION" and "CMAKE__COMPILER_LINKER_FRONTEND_VARIANT" variables were added to describe the linker used by the language's link step. * The "CMAKE_PROJECT_INCLUDE", "CMAKE_PROJECT_INCLUDE_BEFORE", "CMAKE_PROJECT__INCLUDE", and "CMAKE_PROJECT__INCLUDE_BEFORE" variables learned to support a semicolon- separated list of CMake language files to be included sequentially. These variables can also reference module names to be found in "CMAKE_MODULE_PATH" or builtin to CMake. * The "CMAKE_SKIP_TEST_ALL_DEPENDENCY" variable was added to control whether the "test" (or "RUN_TESTS") buildsystem target depends on the "all" (or "ALL_BUILD") target. * A "CMAKE_TEST_LAUNCHER" variable and corresponding "TEST_LAUNCHER" target property were added to specify a launcher to be used by executable targets when invoked by tests added by the "add_test()" command. Properties ---------- * The "CROSSCOMPILING_EMULATOR" target property now supports "generator expressions". * The "UNITY_BUILD" target property now supports the Objective C ("OBJC") and Objective C++ ("OBJCXX") languages. * The "XCODE_EMBED_XPC_SERVICES" target property was added to tell the "Xcode" generator what targets to put in the "Embed XPC Resources" build phase. Modules ------- * The "CMakePackageConfigHelpers" module gained new "generate_apple_platform_selection_file()" and "generate_apple_architecture_selection_file()" functions, which can be used to generate a file that includes another Apple-platform- specific file or the includes an architecture-specific implementation of a package for an Apple platform, respectively. * The "FindOpenGL" module learned to find a GLU include directory different than the GL include directory. A new "OPENGL_INCLUDE_DIRS" result variable provides all include directories. CTest ----- * "ctest(1)" gained a "--http-header" option to add custom headers on submission to CDash. * "ctest(1)" gained the "--tests-from-file" and "--exclude-from-file" options to run or exclude tests named in a file. * "ctest(1)" now supports job server integration on POSIX systems. * The "ctest -j" option may now be given without a value to let ctest choose a default level of parallelism, or with "0" to let ctest use unbounded parallelism. The corresponding "CTEST_PARALLEL_LEVEL" environment variable, if set to the empty string, is now equivalent to passing "-j" with no value. * The "ctest_test()" command gained options "INCLUDE_FROM_FILE" and "EXCLUDE_FROM_FILE" to run or exclude tests named in a file. CPack ----- * The "CPack DEB Generator" "CPACK_DEBIAN_FILE_NAME" variable may now be set without any suffix, and the ".deb" suffix will be added automatically. * The "CPack RPM Generator" "CPACK_RPM_FILE_NAME" variable may now be set without any suffix, and the ".rpm" suffix will be added automatically. * The "CPack WIX Generator" gained a new variable, "CPACK_WIX_INSTALL_SCOPE", to control the "InstallScope" property of WiX MSI installers. Other Changes ============= * CMake learned to de-duplicate libraries on link lines based on linker capabilities. See policy "CMP0156". * The "add_test()" command now honors "CMAKE_CROSSCOMPILING_EMULATOR" only when cross-compiling. See policy "CMP0158". * On Windows, when targeting the MSVC ABI, the "find_library()" command now accepts ".a" file names after first considering ".lib". This is symmetric with existing behavior when targeting the GNU ABI, in which the command accepts ".lib" file names after first considering ".a". * On Windows, when targeting the MSVC ABI, the "find_library()" command now considers ".dll.lib" file names before ".lib". This is the default suffix for DLL import libraries created by Rust toolchains for the MSVC ABI. * The "Ninja" and "NMake Makefiles" generators now use the "-external:I" flag for system includes when using IntelLLVM as of version 2021.4. The "-external:W0" flag is also used as of version 2022.2. * The "create_test_sourcelist()" command now provides a full path to the generated driver source file. * The "CPACK_PRODUCTBUILD_DOMAINS" variable now defaults to true. See policy "CMP0161". * The "CPack WIX Generator" now produces WiX MSI installers that create start menu and uninstall entries for all users by default, as documented by the "CPACK_WIX_INSTALL_SCOPE" variable "perMachine" value. Previously, without a custom WiX template, it produced installers that would only create start menu and uninstall entries for the current user, even though they install for all users. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.3 2023/12/07 17:34:27 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2024-03-21 13:32:22.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...3.27 FATAL_ERROR) @ 1.3 log @cmake cmake-gui: updated to 3.28.0 CMake 3.28 Release Notes ************************ Changes made since CMake 3.27 include the following. New Features ============ Languages --------- * C++ 20 named modules are now supported by Ninja Generators and Visual Studio Generators for VS 2022 and newer, in combination with the MSVC 14.34 toolset (provided with VS 17.4) and newer, LLVM/Clang 16.0 and newer, and GCC 14 (after the 2023-09-20 daily bump) and newer. See "cmake-cxxmodules(7)" for details. * "HIP" language code may now be compiled for NVIDIA GPUs using the NVIDIA CUDA Compiler (NVCC). See the "CMAKE_HIP_PLATFORM" variable. Platforms --------- * On Apple platforms, ".xcframework" folders are now supported: * The "find_library()" command now finds ".xcframework" folders. * The "target_link_libraries()" command now supports linking against a ".xcframework" folder. * The "IMPORTED_LOCATION" target property of an imported library target may now be the path to a ".xcframework" folder. * Apple visionOS and its "xros" and "xrsimulator" SDKs are now supported. Compiling for Apple visionOS can be requested by setting "CMAKE_SYSTEM_NAME" to "visionOS". See Cross Compiling for iOS, tvOS, visionOS, or watchOS for more information. Presets ------- * "cmake-presets(7)" files now support schema version "8". It adds support for a "$schema" field. Compilers --------- * Cray Clang-based compilers are now supported with "compiler id" "CrayClang". * The OrangeC compiler is now supported with "compiler id" "OrangeC". Commands -------- * The "add_custom_command()" and "add_custom_target()" commands gained a "JOB_SERVER_AWARE" option. * The "cmake_host_system_information()" command gained a "MSYSTEM_PREFIX" query for the installation prefix of a MSYS or MinGW development environment on Windows hosts. * The "set_property()" command "TEST" mode gained a "DIRECTORY" option to set properties on tests in other directories. * The "set_tests_properties()" command gained a "DIRECTORY" option to set properties on tests in other directories. * The "get_property()" command "TEST" mode gained a "DIRECTORY" option to get properties on tests in other directories. * The "get_test_property()" command gained a "DIRECTORY" option to get properties on tests in other directories. Variables --------- * The "CMAKE_CROSSCOMPILING_EMULATOR" environment variable was added to initialize the "CMAKE_CROSSCOMPILING_EMULATOR" cache variable. * The "CMAKE_HIP_PLATFORM" variable was added to specify the GPU platform for which HIP language sources are to be compiled ("amd" or "nvidia"). Properties ---------- * On imported shared libraries, the "IMPORTED_IMPLIB" target property may now be used without "IMPORTED_LOCATION". This can be used to represent a stub library whose location should not be added as a runtime search path to dependents that link it. * The "IMPORTED_LOCATION" property of a macOS framework may now be a path to the ".framework" folder itself. * The "XCODE_EMBED_RESOURCES" target property was added to tell the "Xcode" generator what targets to put in the "Embed Resources" build phase. Modules ------- * The "ExternalProject" module now includes the "BUILD_JOB_SERVER_AWARE" option for the "ExternalProject_Add()" command. This option enables the integration of the GNU Make job server when using an explicit "BUILD_COMMAND" with certain Makefile Generators. Additionally, the "ExternalProject_Add_Step()" command has been updated to support the new "JOB_SERVER_AWARE" option. * The "ExternalProject" module now declares "BYPRODUCTS" for the downloaded file for generated "download" steps. Previously, if multiple external projects downloaded to the same file, hash verification could fail. Now, when using the Ninja Generators, this scenario is detected and Ninja will raise an error stating that multiple rules generate the same file. * The "FetchContent" module's "FetchContent_Declare()" command gained an "EXCLUDE_FROM_ALL" option, which propagates through to the "add_subdirectory()" call made by "FetchContent_MakeAvailable()" for the dependency. * The "FindCURL" module gained a "CURL_USE_STATIC_LIBS" hint to select static libraries. * The "FindEXPAT" module gained an "EXPAT_USE_STATIC_LIBS" hint to select static libraries. * The "FindPkgConfig" module "pkg_get_variable()" command gained a "DEFINE_VARIABLES" option to pass variables to "pkg-config". Generator Expressions --------------------- * The "generator expressions" "$ ", "$ ", and "$ " short-circuit to avoid unnecessary evaluation of parameters. CTest ----- * CTest may now take a dynamically-generated resource spec file, which can be specified by the "GENERATED_RESOURCE_SPEC_FILE" test property. Deprecated and Removed Features =============================== * The "exec_program()" command, which has been deprecated since CMake 3.0, has been removed by policy "CMP0153". Use the "execute_process()" command instead. * The "Visual Studio 11 2012" generator has been removed. * The "Visual Studio 12 2013" generator is now deprecated and will be removed in a future version of CMake. * The "IOS_INSTALL_COMBINED" target property and corresponding "CMAKE_IOS_INSTALL_COMBINED" variable have been deprecated. Their functionality does not make sense on Apple Silicon hosts. * The "Xcode" generator will now issue a fatal error if the Legacy Build System has been selected for Xcode 14 and newer. Those Xcode versions dropped support for the Legacy Build System and expect the project to be set-up for their current Build System. Other Changes ============= * Generated files, in targets using File Sets, are now considered private by default. Generated public headers must be specified using file sets. This allows Ninja Generators to produce more efficient build graphs. See policy "CMP0154". * The "find_library()", "find_path()", and "find_file()" commands no longer search in installation prefixes derived from the "PATH" environment variable. This behavior was added in CMake 3.3 to support MSYS and MinGW ("MSYSTEM") development environments on Windows, but it can search undesired prefixes that happen to be in the "PATH" for unrelated reasons. Users who keep some "/bin" directories in the "PATH" just for their tools do not necessarily want any corresponding "/lib" or "/include" directories searched. The behavior was reverted for non-Windows platforms by CMake 3.6. Now it has been reverted on Windows platforms too. One may set the "CMAKE_PREFIX_PATH" environment variable with a semicolon-separated list of prefixes that are to be searched. * When using MinGW tools in a "MSYSTEM" environment on Windows, the "$MSYSTEM_PREFIX/local" and "$MSYSTEM_PREFIX" prefixes are now added to "CMAKE_SYSTEM_PREFIX_PATH". * The precompiled Linux "x86_64" binaries provided on cmake.org now require GLIBC 2.17 or higher. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.2 2023/03/15 13:30:35 adam Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2023-12-06 13:57:42.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...3.26 FATAL_ERROR) @ 1.2 log @cmake: updated to 3.26.0 CMake 3.26 Release Notes ************************ Changes made since CMake 3.25 include the following. New Features ============ Languages --------- * The "ASM_MARMASM" language was added to support the Microsoft ARM assembler language. Command-Line ------------ * The "cmake -E copy" command-line tool now supports a "-t" argument. * The "cmake -E copy_directory_if_different" command-line tool was added. Configure Log ------------- * CMake now writes a YAML log of configure-time checks to "CMakeFiles/CMakeConfigureLog.yaml" under the top of the build tree. See the "cmake-configure-log(7)" manual. File-Based API -------------- * The "cmake-file-api(7)" "codemodel" version 2 "version" field has been updated to 2.5. * The "cmake-file-api(7)" "codemodel" version 2 "target" object gained a new "fileSets" field and associated "fileSetIndex" field to "sources" objects. * The "cmake-file-api(7)" gained a new "configureLog" object kind that enables stable access to the "cmake-configure-log(7)". Commands -------- * The "add_custom_command()" and "add_custom_target()" commands now support "generator expressions" in their "COMMENT" option. * The "message()" command gained a "CONFIGURE_LOG" mode to record an entry in the "cmake-configure-log(7)". * The "string(TIMESTAMP)" and "file(TIMESTAMP)" commands now support the "%z" and "%Z" specifiers for the time zone. * The "try_compile()" and "try_run()" commands gained a "LOG_DESCRIPTION" option specifying text to be recorded in the "cmake-configure-log(7)". * The "try_compile()" and "try_run()" commands gained a "NO_LOG" option to skip recording a "cmake-configure-log(7)" entry. Variables --------- * The "CMAKE__COMPILER_FRONTEND_VARIANT" variable is now set for "GNU", "MSVC", and "AppleClang" compilers that have only one frontend variant. * A "CMAKE_VS_VERSION_BUILD_NUMBER" variable is now set by Visual Studio Generators for VS 2017 and above to report the four-component Visual Studio version number. Properties ---------- * The "_CLANG_TIDY_EXPORT_FIXES_DIR" target property was added to allow the "clang-tidy" tool to export its suggested fixes to a set of ".yaml" files. A new "CMAKE__CLANG_TIDY_EXPORT_FIXES_DIR" variable was created to initialize this property. * The "XCODE_EMBED_EXTENSIONKIT_EXTENSIONS" target property was added to tell the "Xcode" generator to embed ExtensionKit-based extensions such as extensions using the Background Assets framework. Aspects of the embedding can be customized with: * "XCODE_EMBED_EXTENSIONKIT_EXTENSIONS_PATH" * "XCODE_EMBED_EXTENSIONKIT_EXTENSIONS_CODE_SIGN_ON_COPY" * "XCODE_EMBED_EXTENSIONKIT_EXTENSIONS_REMOVE_HEADERS_ON_COPY" Modules ------- * The "ExternalProject" module's "ExternalProject_Add()" command gained an "INSTALL_BYPRODUCTS" option to specify files generated by the "install" step. * The "FindCUDAToolkit" module: * gained support for the "sbsa-linux" cross compilation target, and * now provides an imported target for "nvrtc_static", if found. * The "FindImageMagick" module now provides imported targets. * The "FindPython3" and "FindPython" modules gained support for the Stable Application Binary Interface. * The "UseSWIG" module gained support for the "perl5" language. Generator Expressions --------------------- * The "lt;BUILD_LOCAL_INTERFACE:...>" generator expression was added to prevent usage requirements from being exported to dependent projects. CTest ----- * The "CTEST_NO_TESTS_ACTION" environment variable was added to provide a default value for the "--no-tests=" command line argument of "ctest(1)". Deprecated and Removed Features =============================== * The "CMakeFiles/CMakeOutput.log" and "CMakeFiles/CMakeError.log" files are no longer populated by CMake's built-in modules. "cmake(1)" no longer suggests looking at them after a "CMake Error" occurs. Information previously logged to those files is instead logged to the "cmake-configure-log(7)". * On CYGWIN, the undocumented "CMAKE_LEGACY_CYGWIN_WIN32" mode for compatibility with CMake versions older than 2.8.4 has been removed. Other Changes ============= * Language Standard Flags, such as "-std=c++11", when generated due to "target_compile_features()" or "CMAKE__STANDARD", are now placed before flags added by "target_compile_options()", rather than after them. * For all "COMPILE_DEFINITIONS" properties, any leading "-D" on an item is removed whether or not it was specified by a generator expression. * The "compile_commands.json" database enabled by "CMAKE_EXPORT_COMPILE_COMMANDS" now provides the "output" field in the compile commands objects. This allows multi-config generators, such as the "Ninja Multi-Config" generator, to provide the compile commands for all configurations. * The "USE_FOLDERS" global property is treated as "ON" by default. See policy "CMP0143". * The top-level "project()" call will now emit an author warning if the documented command order in relation to "cmake_minimum_required()" is not respected. * The "cmake --trace" option now follows "try_compile()" and "try_run()" invocations. @ text @d1 1 a1 1 $NetBSD: patch-Source_Checks_Curses_CMakeLists.txt,v 1.1 2018/10/16 16:37:21 leot Exp $ d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2023-03-14 14:04:14.000000000 +0000 d8 1 a8 1 cmake_minimum_required(VERSION 3.13...3.24 FATAL_ERROR) @ 1.1 log @cmake: Use NetBSD curses(3) when possible ccmake needs wsyncup(3) and since NetBSD 8.0 it is present on NetBSD. Handle that via `USE_CURSES= wsyncup' and remove enforcements about ncurses in CMakeLists.txt and Source/Checks/Curses/CMakeLists.txt. Bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 - Don't insist on ncurses d5 1 a5 1 --- Source/Checks/Curses/CMakeLists.txt.orig 2018-10-03 12:35:51.000000000 +0000 d7 2 a8 2 @@@@ -4,7 +4,6 @@@@ if(POLICY CMP0060) endif() @