head 1.2; access; symbols pkgsrc-2026Q3:1.2.0.10 pkgsrc-2026Q3-base:1.2 pkgsrc-2026Q2:1.2.0.8 pkgsrc-2026Q2-base:1.2 pkgsrc-2026Q1:1.2.0.6 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.4 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.2 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.1.0.22 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.20 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.18 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.16 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.14 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.12 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.10 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.8 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.6 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.4 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.2 pkgsrc-2022Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2025.08.20.11.34.12; author wiz; state Exp; branches; next 1.1; commitid h51xGAjNqOBnGs7G; 1.1 date 2022.11.22.19.14.03; author adam; state Exp; branches; next ; commitid upBhcpAu3i4JqJ2E; desc @@ 1.2 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 @$NetBSD: patch-Source_Modules_CMakeBuildUtilities.cmake,v 1.1 2022/11/22 19:14:03 adam Exp $ Don't insist on ncurses. --- Source/Modules/CMakeBuildUtilities.cmake.orig 2025-08-05 14:55:57.000000000 +0000 +++ Source/Modules/CMakeBuildUtilities.cmake @@@@ -354,7 +354,6 @@@@ if(NOT DEFINED BUILD_CursesDialog) endif() if(BUILD_CursesDialog) if(UNIX) - set(CURSES_NEED_NCURSES TRUE) find_package(Curses) if(NOT Curses_FOUND) message(WARNING @ 1.1 log @cmake: updated to 3.25.0 CMake 3.25 Release Notes ************************ Changes made since CMake 3.24 include the following. New Features ============ Presets ------- * The "cmake-presets(7)" schema version has been bumped to "6". * The "cmake-presets(7)" format now supports a "packagePresets" field to specify presets for "cpack --preset". * The "cmake-presets(7)" format now supports a "workflowPresets" field to specify presets for "cmake --workflow". * The "cmake-presets(7)" format now supports an "outputJUnitFile" field to specify JUnit output in test presets Languages --------- * The "Compile Features" functionality is now aware of C++26, and defines a "cxx_std_26" meta-feature. C++26 compiler modes may also be specified via the "CXX_STANDARD", "CUDA_STANDARD", "HIP_STANDARD", or "OBJCXX_STANDARD" target properties. * "CUDA" language support now includes device link-time optimization when using "nvcc". The "CMAKE_INTERPROCEDURAL_OPTIMIZATION" variable and the associated "INTERPROCEDURAL_OPTIMIZATION" target property will activate device LTO. Command-Line ------------ * A "cmake --workflow --preset" mode was added to drive sequences of configure, build, test, and package operations through a single command. * The "cmake -E capabilities" command gained a new "tls" field that tells whether or not TLS is enabled. * The "cmake -E env" command-line tool gained a "--modify" flag to support "ENVIRONMENT_MODIFICATION" operations. * The "cmake --debug-trycompile" option now prints log messages reporting the directory in which each try-compile check is done. Compilers --------- * Support for the Tasking compiler toolsets (SmartCode, TriCore, Standalone: ARM, MCS, 8051) was added with compiler id "Tasking". See the "CMAKE_TASKING_TOOLSET" variable. Commands -------- * The "add_subdirectory()" command gained a "SYSTEM" option to enable the "SYSTEM" directory property in the subdirectory. * The "block()" and "endblock()" commands were added to manage specific scopes (policy or variable) for a contained block of commands. * The "cmake_language()" command gained a new "GET_MESSAGE_LOG_LEVEL" sub-command. It can be used to query the current message logging level. * The "find_file()", "find_path()", "find_library()", and "find_program()" commands gained a "VALIDATOR" option to specify a function to be called for each candidate item to validate it. * The "find_package()" command now considers paths of the form "/*/(cmake|CMake)/*/" when searching for package configuration files. * The "return()" command gained a "PROPAGATE" option to propagate variables to the scope to which control returns. See policy "CMP0140". * The "try_compile()" and "try_run()" commands gained new signatures that more consistently use keyword dispatch and do not require a binary directory to be specified. Additionally, these signatures use a unique directory for each invocation, which allows multiple outputs to be preserved when using "cmake --debug-trycompile". * The "try_compile()" and "try_run()" commands gained the option "NO_CACHE" to store results in normal variables. * The "try_run()" command gained "RUN_OUTPUT_STDOUT_VARIABLE" and "RUN_OUTPUT_STDERR_VARIABLE" options to capture stdout and stderr separately from the output of the compiled program. Variables --------- * The "BSD" and "CMAKE_HOST_BSD" variables are now set to a string value when the target or host system is BSD, respectively. * The "LINUX" and "CMAKE_HOST_LINUX" variables are now set to true when the target or host system is Linux, respectively. * The "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT" variable and "MSVC_DEBUG_INFORMATION_FORMAT" target property were introduced to select the debug information format for compilers targeting the MSVC ABI. See policy "CMP0141". * The "CMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION" variable and corresponding "XCODE_SCHEME_ENABLE_GPU_API_VALIDATION" target property were added to tell the "Xcode" generator what to put in the scheme's "Metal: API Validation" setting. * The "CMAKE_XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION" variable and corresponding "XCODE_SCHEME_ENABLE_GPU_SHADER_VALIDATION" target property were added to tell the "Xcode" generator what to put in the scheme's "Metal: Shader Validation" setting. * The "CMAKE_XCODE_SCHEME_LAUNCH_MODE" variable and corresponding "XCODE_SCHEME_LAUNCH_MODE" target property were added to tell the "Xcode" generator what to put in the scheme's "Launch" mode setting. * The "CMAKE_XCODE_SCHEME_LAUNCH_CONFIGURATION" variable and corresponding "XCODE_SCHEME_LAUNCH_CONFIGURATION" target property were added to tell the "Xcode" generator what configuration to put in the scheme's Launch action. Properties ---------- * The "_COMPILER_LAUNCHER" target property now supports "generator expressions". * The "EXPORT_NO_SYSTEM" target property was added to specify that "install(EXPORT)" and "export()" commands will generate an imported target with "SYSTEM" property "OFF". * The "SYSTEM" target property was added to specify whether a target should be treated as a system library (i.e. its include directories are automatically "SYSTEM" when compiling consumers). If not set, the default is the previous behavior: on for imported targets and off for other targets. * The "SYSTEM" directory property was added to initialize the "SYSTEM" target property for targets created in that directory. Modules ------- * The "FetchContent" module "FetchContent_Declare()" command gained a "SYSTEM" option to enable the "SYSTEM" directory property in the subdirectory. * The "FindCUDAToolkit" module now provides a target for nvtx3 for CUDA 10.0+, which supersedes nvToolsExt. A deprecation warning is emitted when using "nvToolsExt" if the project requires CMake 3.25 and CUDA 10.0+ is used. * The "FindDoxygen" module's version handling has been improved: * Multiple candidate installations will now be considered, if needed, to satisfy version constraints. Previously, only the first one encountered would be considered. * Version ranges are supported. * Variations in the version format reported by Doxygen are now tolerated (e.g. a trailing git commit hash). * The "FindOpenAL" module now provides an imported target. * The "FindOpenSP" module was added to find the OpenSP library. * The "FindVulkan" module gained support for new components: "dxc" DirectX Shader Compiler. "volk" Volk open-source vulkan meta-loader. CPack ----- * The "CPack Archive Generator" gained a new "CPACK_ARCHIVE_FILE_EXTENSION" variable to control the package file name extension. * The "CPack NSIS Generator" gained two new variables "CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS" and "CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS" to provide arguments to the nsis executable invocation. * The "CPack" module gained the "CPACK_READELF_EXECUTABLE", "CPACK_OBJCOPY_EXECUTABLE", and "CPACK_OBJDUMP_EXECUTABLE" variables to control the locations of binutils used by "cpack(1)". Deprecated and Removed Features =============================== * The "IMPORTED_NO_SYSTEM" target property has been deprecated in favor of "SYSTEM" and "EXPORT_NO_SYSTEM". * The "Visual Studio 10 2010" generator has been removed. * The "Visual Studio 11 2012" generator is now deprecated and will be removed in a future version of CMake. Other Changes ============= * 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". * The "SSL_CERT_FILE" and "SSL_CERT_DIR" environment variables can now be used to override where to find certificate authorities for TLS/SSL operations. * If "_CLANG_TIDY" includes a "-p" argument, the full compiler command line is no longer appended after "--". * The "Xcode" generator no longer adds the per-config suffix "$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)" to library search paths. See policy "CMP0142". ---------------------------------------------------------------------------- Changes made since CMake 3.25.0-rc4: Help: Render guide links as normal text instead of monospace msvc: bless MSVC 19.34 support for C++ modules as experimental cmake-gui: Restore embedded version information in Windows binary curl: Disable schannel TLS 1.3 support on Windows 11 Tests: Fix TryCompile bad source case for clang-cl 15 on Windows ci: Factor out helper to load ninja into environment on Windows ci: Factor out helper to load clang into environment on Windows ci: Simplify LLVM/Clang CI job specs on Windows ci: Update LLVM/Clang to 15.0 in nightly CI jobs on Windows gitlab-ci: Update Windows non-packaging builds to MSVC 14.34 toolset gitlab-ci: Update Windows packaging builds to MSVC 14.34 toolset CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is empty CPack/IFW: Add support for QtIFW 4.5 IAR: Fix ASM compiler architecture detection Ninja: Restore support for compilers not defining a C++ standard level expat: Activate POSIX APIs even without compiler extensions cmGlobalVisualStudioGenerator: Fix compiling as C++20 in VS 2022 @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- Source/Modules/CMakeBuildUtilities.cmake.orig 2022-11-22 18:51:08.946372477 +0000 d7 1 a7 1 @@@@ -352,7 +352,6 @@@@ if(NOT DEFINED BUILD_CursesDialog) d13 1 a13 1 if(NOT CURSES_FOUND) @