head 1.7; access; symbols pkgsrc-2026Q1:1.6.0.6 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.6.0.4 pkgsrc-2025Q4-base:1.6 pkgsrc-2025Q3:1.6.0.2 pkgsrc-2025Q3-base:1.6 pkgsrc-2025Q2:1.5.0.22 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.20 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.18 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.16 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.14 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.12 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.10 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.8 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.6 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.4 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.2 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.4.0.12 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.10 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.8 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.6 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.4 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.2 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.3.0.2 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.2.0.2 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.1.0.8 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.6 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.4 pkgsrc-2019Q4-base:1.1; locks; strict; comment @# @; 1.7 date 2026.03.26.09.00.32; author adam; state Exp; branches; next 1.6; commitid Hk9A74MiiW84PszG; 1.6 date 2025.08.20.11.34.12; author wiz; state Exp; branches; next 1.5; commitid h51xGAjNqOBnGs7G; 1.5 date 2022.11.22.19.14.03; author adam; state Exp; branches; next 1.4; commitid upBhcpAu3i4JqJ2E; 1.4 date 2021.03.31.07.43.39; author adam; state Exp; branches; next 1.3; commitid GNWnnZYGrKVEVqNC; 1.3 date 2021.01.16.11.16.25; author adam; state Exp; branches; next 1.2; commitid nQjhI3H4eZVauWDC; 1.2 date 2020.11.25.10.33.28; author adam; state Exp; branches; next 1.1; commitid oAzvo7S237gNUfxC; 1.1 date 2019.11.27.22.32.27; author adam; state Exp; branches; next ; commitid 0kVIoRIU6x5jBxMB; desc @@ 1.7 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 @$NetBSD: patch-Source_QtDialog_CMakeLists.txt,v 1.6 2025/08/20 11:34:12 wiz Exp $ Do not make app bundle on Darwin. --- Source/QtDialog/CMakeLists.txt.orig 2026-03-17 13:29:16.000000000 +0000 +++ Source/QtDialog/CMakeLists.txt @@@@ -237,7 +237,7 @@@@ target_link_libraries( CMakeGUILib ) -add_executable(cmake-gui WIN32 MACOSX_BUNDLE CMakeGUIExec.cxx) +add_executable(cmake-gui WIN32 CMakeGUIExec.cxx) set_property(TARGET cmake-gui PROPERTY CMake_QT_MAJOR_VERSION "${CMake_QT_MAJOR_VERSION}") target_link_libraries(cmake-gui PRIVATE @@@@ -251,7 +251,7 @@@@ target_link_libraries(cmake-gui if(WIN32) target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.rc) endif() -if(APPLE) +if(FALSE) target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.icns) set(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns) set_source_files_properties(CMakeSetup.icns PROPERTIES @@@@ -281,7 +281,7 @@@@ Checks: '-*,llvm-twine-local' ... ") -if(APPLE) +if(FALSE) set_target_properties(cmake-gui PROPERTIES OUTPUT_NAME CMake MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in" @@@@ -303,7 +303,7 @@@@ install(TARGETS cmake-gui RUNTIME DESTINATION ${CMake_INSTALL_BIN_DIR} ${COMPONENT} BUNDLE DESTINATION . ${COMPONENT}) -if(UNIX AND NOT APPLE) +if(UNIX) foreach(size IN ITEMS 32 128) install( FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeSetup${size}.png" @@@@ -322,14 +322,14 @@@@ if(UNIX AND NOT APPLE) ${COMPONENT}) endif() -if(APPLE) +if(FALSE) install(CODE " execute_process(COMMAND ln -s \"../MacOS/CMake\" cmake-gui WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMake_INSTALL_BIN_DIR}) " ${COMPONENT}) endif() -if(CMake_INSTALL_DEPENDENCIES AND (APPLE OR WIN32)) +if(CMake_INSTALL_DEPENDENCIES AND WIN32) if(COMMAND qt_generate_deploy_app_script) # Qt libraries are found via @@rpath, so point the runtime path at them. set_property(TARGET cmake-gui PROPERTY INSTALL_RPATH "@@executable_path/../Frameworks") @@@@ -342,11 +342,11 @@@@ if(CMake_INSTALL_DEPENDENCIES AND (APPLE # install rules for including 3rd party libs such as Qt # if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMake_INSTALL_BIN_DIR}/cmake-gui${CMAKE_EXECUTABLE_SUFFIX}") - if(APPLE) + if(FALSE) set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMake_INSTALL_APP_DIR_SLASH}MacOS/CMake") endif() get_property(_Qt_Core_LOCATION TARGET Qt${CMake_QT_MAJOR_VERSION}::Core PROPERTY LOCATION) - if(APPLE AND _Qt_Core_LOCATION MATCHES [[^(.*)/[^/]*\.framework/]]) + if(FALSE AND _Qt_Core_LOCATION MATCHES [[^(.*)/[^/]*\.framework/]]) set(Qt_LIB_DIR "${CMAKE_MATCH_1}") else() get_filename_component(Qt_LIB_DIR "${_Qt_Core_LOCATION}" PATH) @ 1.6 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_QtDialog_CMakeLists.txt,v 1.5 2022/11/22 19:14:03 adam Exp $ d5 1 a5 1 --- Source/QtDialog/CMakeLists.txt.orig 2025-08-05 14:55:57.000000000 +0000 d7 1 a7 1 @@@@ -263,7 +263,7 @@@@ target_link_libraries( d16 1 a16 1 @@@@ -277,7 +277,7 @@@@ target_link_libraries(cmake-gui d25 1 a25 1 @@@@ -307,7 +307,7 @@@@ Checks: '-*,llvm-twine-local' d34 3 a36 3 @@@@ -329,7 +329,7 @@@@ install(TARGETS cmake-gui RUNTIME DESTINATION bin ${COMPONENT} BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" ${COMPONENT}) d43 1 a43 1 @@@@ -348,14 +348,14 @@@@ if(UNIX AND NOT APPLE) d51 1 a51 1 WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin) d57 17 a73 3 # install rules for including 3rd party libs such as Qt # if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/cmake-gui${CMAKE_EXECUTABLE_SUFFIX}") @ 1.5 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: patch-Source_QtDialog_CMakeLists.txt,v 1.4 2021/03/31 07:43:39 adam Exp $ d5 1 a5 1 --- Source/QtDialog/CMakeLists.txt.orig 2022-11-16 14:42:03.000000000 +0000 d7 1 a7 1 @@@@ -256,7 +256,7 @@@@ target_link_libraries( d13 1 d16 1 a16 2 CMakeGUIMainLib @@@@ -269,7 +269,7 @@@@ target_link_libraries(cmake-gui d25 1 a25 1 @@@@ -299,7 +299,7 @@@@ Checks: '-*,llvm-twine-local' d31 4 a34 4 file(STRINGS "${CMake_SOURCE_DIR}/Copyright.txt" copyright_line LIMIT_COUNT 1 REGEX "^Copyright 2000-20[0-9][0-9] Kitware") @@@@ -324,7 +324,7 @@@@ install(TARGETS cmake-gui d43 1 a43 1 @@@@ -343,14 +343,14 @@@@ if(UNIX AND NOT APPLE) @ 1.4 log @cmake cmake-gui: updated to 3.20.0 CMake 3.20 Release Notes ************************ Changes made since CMake 3.19 include the following. New Features ============ Presets ------- * "cmake-presets(7)" gained support for build and test presets. Generators ---------- * Makefile Generators, for some toolchains, now use the compiler to extract implicit dependencies while compiling source files. Languages --------- * C++23 compiler modes may now be specified via the "CXX_STANDARD", "CUDA_STANDARD", or "OBJCXX_STANDARD" target properties, or via the "Compile Features" functionality’s "cxx_std_23" meta-feature. * "CUDA" language support now works when "nvcc" is a symbolic link, for example due to a "ccache" or "colornvcc" wrapper script. * The "CUDAARCHS" environment variable was added for initializing "CMAKE_CUDA_ARCHITECTURES". Useful in cases where the compiler default is unsuitable for the machine’s GPU. Compilers --------- * The NVIDIA HPC SDK compilers are now supported with compiler id "NVHPC". * The Intel oneAPI NextGen LLVM compilers are now supported with compiler id "IntelLLVM": * The "icx"/"icpx" C/C++ compilers on Linux, and the "icx" C/C++ compiler on Windows, are fully supported as of oneAPI 2021.1. * The "ifx" Fortran compiler on Linux is partially supported. As of oneAPI 2021.1, "ifx" does not define several identification macros, so CMake identifies it as the classic "Intel" compiler. This works in many cases because "ifx" accepts the same command line parameters as "ifort". A future version of oneAPI may fix this. * The "ifx" Fortran compiler on Windows is not yet supported. The Intel oneAPI Classic compilers ("icc", "icpc", and "ifort") continue to be supported with compiler id "Intel". * Support was added for the IAR STM8 compiler. Platforms --------- * CMake’s support for Cross Compiling for Android is now merged with the Android NDK’s toolchain file. They now have similar behavior, though some variable names differ. User-facing changes include: * "find_*" functions will search NDK ABI / API specific paths by default. * The default "CMAKE_BUILD_TYPE" for Android is now "RelWithDebInfo". * The "CMAKE_ANDROID_NDK_VERSION" variable was added to report the version of the NDK. File-Based API -------------- * The "cmake-file-api(7)" gained a new “toolchains” object kind that describes the compiler used for each enabled language. Commands -------- * "add_custom_command()" and "add_custom_target()" now support "generator expressions" in their "OUTPUT" and "BYPRODUCTS" options. Their "COMMAND", "WORKING_DIRECTORY", and "DEPENDS" options gained support for new generator expressions "" and "" that control cross-config handling when using the "Ninja Multi-Config" generator. * The "add_custom_command()" command gained "DEPFILE" support on Makefile Generators. * The "add_library()" command previously prohibited imported object libraries when using potentially multi-architecture configurations. This mostly affected the "Xcode" generator, e.g. when targeting iOS or one of the other device platforms. This restriction has now been removed. * The "cmake_path()" command was added for operations on filesystem paths. * The "configure_file()" command gained "USE_SOURCE_PERMISSIONS" and "FILE_PERMISSIONS" options to support copying of permissions of the source file and using specified permissions respectively. * The "file(GENERATE)" command gained a "NEWLINE_STYLE" option to specify how newlines are handled for the generated file. * The "file(GENERATE)" command gained "NO_SOURCE_PERMISSIONS", "USE_SOURCE_PERMISSIONS", and "FILE_PERMISSIONS" options for controlling the permissions of the generated file. * The "install(FILES)" command "RENAME" option learned to support "generator expressions". * The "target_include_directories()" command gained a new option "AFTER". * The "target_sources()" command now supports targets created by the "add_custom_target()" command. * The "try_run()" command gained a "WORKING_DIRECTORY" option to set the working directory in which to run the compiled check executable. Variables --------- * The "CMAKE__BYTE_ORDER" variable was added to provide the target architecture byte order detected from the toolchain. * The "CMAKE_RUNTIME_OUTPUT_DIRECTORY", "CMAKE_LIBRARY_OUTPUT_DIRECTORY", and "CMAKE_ARCHIVE_OUTPUT_DIRECTORY" variables now support target- dependent generator expressions. Properties ---------- * The "_CLANG_TIDY" target property and the associated "CMAKE__CLANG_TIDY" variable learned to support the "OBJC" and "OBJCXX" languages. * The "EXPORT_COMPILE_COMMANDS" target property was added for the associated "CMAKE_EXPORT_COMPILE_COMMANDS" variable to allow for configuration of exporting compile commands per target. * The "GENERATED" source-file property is now visible from any directory scope, regardless of the scope in which it is set. See policy "CMP0118". * The "UNITY_BUILD_UNIQUE_ID" target property was added to support generation of an identifier that is unique per source file in unity builds. It can help to resolve duplicate symbol problems with anonymous namespaces. * The "WIN32_EXECUTABLE" target property now works with Clang on Windows. * The "XCODE_EMBED_FRAMEWORKS" target property was added to tell the "Xcode" generator to embed frameworks. Aspects of the embedding can be customized with the "XCODE_EMBED_FRAMEWORKS_PATH", "XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY", and "XCODE_EMBED_FRAMEWORKS_REMOVE_HEADERS_ON_COPY" target properties. Modules ------- * The "ExternalData" module "ExternalData_Add_Target()" function gained a "SHOW_PROGRESS " option for controlling whether or not to show progress output during the build. * The "ExternalProject" module "ExternalProject_Add()" function gained a "CONFIGURE_HANDLED_BY_BUILD" option. This can be used to make subsequent runs of the configure step be triggered by the build step when an external project dependency rebuilds instead of always re- running the configure step in such cases. * The "FindBoost" module gained a "Boost_NO_WARN_NEW_VERSIONS" option to silence the warning about unknown dependencies for new Boost versions. * The "FindCUDAToolkit" module gained support for finding CUDA toolkits when "nvcc" is a symbolic link, for example due to a "ccache" or "colornvcc" wrapper script. * The "FindGDAL" module has been improved to document and mark as advanced its cache variables. There is a new "FindGDAL_SKIP_GDAL_CONFIG" variable which may be used to skip over the "gdal-config"-based search. Users may also set "GDAL_ADDITIONAL_LIBRARY_VERSIONS" to add additional versions to the library name search strategy. * The "FindIntl" module now provides an imported target. * The "FindOpenSSL" module learned to support a version range. * The "FindPython3", "FindPython2" and "FindPython" modules gained options controlling how unversioned interpreter names are searched. * The "UseJava" module "add_jar()" command’s "GENERATE_NATIVE_HEADERS" feature gained options to export the generated target. * The "UseSWIG" module gained the capability, for Makefile and Ninja generators, to use the "swig" tool to generate implicit dependencies. Autogen ------- * The AUTOMOC feature now works with per-config sources. CTest ----- * "ctest(1)" gained a "--test-dir" option to specify the directory in which to look for tests. CPack ----- * "CPack" gained the "CPACK_THREADS" variable to control the number of threads used for parallelized operations, such as compressing the installer package. * The "CPack DEB Generator" learned a new "CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS" variable to specify additional search directories for resolving private library dependencies when using "dpkg-shlibdeps". * The "CPack IFW Generator" gained a new "CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST" variable to control visibility of the widget listing installer pages on the left side of the wizard. This feature available only since QtIFW 4.0. * The "CPack NSIS Generator" gained new "CPACK_NSIS_BRANDING_TEXT" and "CPACK_NSIS_BRANDING_TEXT_TRIM_POSITION" variables to change the text at the bottom of the install window and change its trim position * The "CPack NSIS Generator" now correctly handles Unicode characters. If you want to have a "CPACK_RESOURCE_FILE_LICENSE" with UTF-8 characters, it needs to be encoded in UTF-8 BOM. * The "CPack NuGet Generator" gained options: * "CPACK_NUGET_PACKAGE_ICON" and "CPACK_NUGET__PACKAGE_ICON" allow package icons to be specified by local files. * "CPACK_NUGET_PACKAGE_LICENSE_EXPRESSION" and "CPACK_NUGET__PACKAGE_LICENSE_EXPRESSION" add support for specifying licenses recognized by the Software Package Data Exchange (SPDX). * "CPACK_NUGET_PACKAGE_LICENSE_FILE_NAME" and "CPACK_NUGET__PACKAGE_LICENSE_FILE_NAME" allow licenses to be specified by local files. * "CPACK_NUGET_PACKAGE_LANGUAGE" and "CPACK_NUGET__PACKAGE_LANGUAGE" allow the locale for a package to be specified, for example "en_CA". Deprecated and Removed Features =============================== * The "cmake-server(7)" mode has been removed. Clients should use the "cmake-file-api(7)" instead. * The "WriteCompilerDetectionHeader" module has been deprecated via policy "CMP0120". Projects should be ported away from it. * The "TestBigEndian" module has been deprecated in favor of the "CMAKE__BYTE_ORDER" variable. * The "AddFileDependencies" module is deprecated. Port projects to use "set_property()" directly. * The "CPack NuGet Generator" deprecated some variables to reflect changes in the NuGet specification: * "CPACK_NUGET_PACKAGE_ICONURL" and "CPACK_NUGET__PACKAGE_ICONURL" have been deprecated; replace with a reference to a local icon file. * "CPACK_NUGET_PACKAGE_LICENSEURL" and "CPACK_NUGET__PACKAGE_LICENSEURL" have been deprecated; replace with a reference to the project’s license file or SPDX license expression. Other Changes ============= * Source file extensions must now be explicit. See policy "CMP0115" for details. * The "LANGUAGE" source file property now forces compilation as the specified language. See policy "CMP0119". * On AIX, installation of XCOFF executables and shared libraries no longer requires relinking to change the runtime search path from the build-tree RPATH to the install-tree RPATH. CMake now edits the XCOFF binaries directly during installation, as has long been done on ELF platforms. * With MSVC-like compilers the value of "CMAKE_CXX_FLAGS" no longer contains the "/GR" flag for runtime type information by default. See policy "CMP0117". * Ninja generators now transform the "DEPFILE" generated by an "add_custom_command()". See policy "CMP0116" for details. * The precompiled Linux binaries provided on cmake.org have changed their naming pattern to "cmake-$ver-linux-$arch", where "$arch" is either "x86_64" or "aarch64". * The precompiled Windows binaries provided on cmake.org have changed their naming pattern to "cmake-$ver-windows-$arch", where "$arch" is either "x86_64" or "i386". @ text @d1 1 a1 1 $NetBSD: patch-Source_QtDialog_CMakeLists.txt,v 1.3 2021/01/16 11:16:25 adam Exp $ d5 1 a5 1 --- Source/QtDialog/CMakeLists.txt.orig 2021-03-23 15:43:17.000000000 +0000 d7 10 a16 9 @@@@ -243,14 +243,14 @@@@ target_link_libraries(CMakeGUILib PUBLIC add_library(CMakeGUIMainLib STATIC CMakeSetup.cxx) target_link_libraries(CMakeGUIMainLib PUBLIC CMakeGUILib) -add_executable(cmake-gui WIN32 MACOSX_BUNDLE CMakeGUIExec.cxx ${MANIFEST_FILE}) +add_executable(cmake-gui WIN32 CMakeGUIExec.cxx ${MANIFEST_FILE}) target_link_libraries(cmake-gui CMakeGUIMainLib Qt${INSTALLED_QT_VERSION}::Core) target_sources(CMakeGUIMainLib INTERFACE $) d18 1 a18 1 target_sources(CMakeGUIMainLib INTERFACE $ CMakeSetup.rc) d25 1 a25 1 @@@@ -280,7 +280,7 @@@@ Checks: '-*,llvm-twine-local' d34 1 a34 1 @@@@ -307,7 +307,7 @@@@ install(TARGETS cmake-gui d36 1 a36 1 ${CMAKE_INSTALL_DESTINATION_ARGS}) d40 1 a40 1 foreach (size IN ITEMS 32 128) d43 1 a43 1 @@@@ -326,14 +326,14 @@@@ if(UNIX AND NOT APPLE) @ 1.3 log @cmake: updated to 3.19.3 CMake 3.19.3 * cmSystemTools: Revert use of MOVEFILE_WRITE_THROUGH by RenameFile on Windows * Tests: Fix ConfigSources test with empty CMAKE_BUILD_TYPE * gitlab-ci: consolidate Linux release package job spec for x86_64 * Help: Add 3.19.3 release note for Linux aarch64 binary * gitlab-ci: update macOS jobs to use Xcode 12.3 * cmGlobalXCodeGenerator: Adopt pbxproj object id generation * cmGlobalXCodeGenerator: Add infrastructure for deterministic object ids * Xcode: Use deterministic object ids for script build phases * gitlab-ci: update upload jobs to go to cmake.org * cmake-gui: Fix macOS styling for binaries distributed with Qt 5.10+ * Utilities/Release: Fix macOS Qt 5.9 build script umask * Utilities/Release: Add script to build Qt 5.15.2 macOS universal binaries * ci: build separate macOS packages for macOS 10.13+ and macOS 10.10+ * Help: Fix Sphinx not recognising list in XCODE_LINK_BUILD_PHASE_MODE * FetchContent: Relative SOURCE_DIR override cannot be a hard error * FindMPI: remove single quotes from include path * Utilities/Release: Add docker specs for Linux aarch64 binaries * gitlab-ci: add jobs to make Linux release packages for aarch64 on 3.19 branch * FindHDF5: Fix finding both debug and release libs * cmake-gui: Restore linking of Qt resources * cmMakefile: Don't expand bracket arguments in --trace-expand @ text @d1 1 a1 1 $NetBSD: patch-Source_QtDialog_CMakeLists.txt,v 1.2 2020/11/25 10:33:28 adam Exp $ d5 1 a5 1 --- Source/QtDialog/CMakeLists.txt.orig 2021-01-13 12:58:18.000000000 +0000 d7 1 a7 1 @@@@ -161,14 +161,14 @@@@ target_link_libraries(CMakeGUILib PUBLIC d13 1 a13 1 target_link_libraries(cmake-gui CMakeGUIMainLib Qt5::Core) d24 1 a24 1 @@@@ -198,7 +198,7 @@@@ Checks: '-*,llvm-twine-local' d33 1 a33 1 @@@@ -225,7 +225,7 @@@@ install(TARGETS cmake-gui d42 1 a42 1 @@@@ -244,14 +244,14 @@@@ if(UNIX AND NOT APPLE) @ 1.2 log @cmake cmake-gui: updated to 3.19.1 CMake 3.19.1 ci: update to use CMake 3.19.0 gitlab-ci: update macOS jobs to use Xcode 12.0 Revert “specify language flag when source LANGUAGE property is set” FindGTest: Revert “Allow either “Debug” or “Release” configurations.” Makefiles: Fix CMAKE_EXPORT_COMPILE_COMMANDS crash with custom compile rule Xcode: Fix custom command work-dir placeholders in “new build system” Tests: Match RunCMake.CMP0111 stderr more strictly cmTarget: Do not enforce CMP0111 on imported INTERFACE libraries cmVisualStudio10TargetGenerator: Avoid GetFullPath on INTERFACE library cmGlobalGenerator: FindMakeProgram() at a generator-specific time cmFileTime: Fix overflow on time computation Help: Fix ‘… versionadded’ directives for CTEST_CUSTOM_* variables CUDA: Clang CUDA 11.1 support CUDA: Error if can’t determine toolkit library root CMake 3.19 Release Notes ************************ Changes made since CMake 3.18 include the following. New Features ============ Presets ------- * "cmake(1)" and "cmake-gui(1)" now recognize "CMakePresets.json" and "CMakeUserPresets.json" files (see "cmake-presets(7)"). Generators ---------- * The "Xcode" generator now uses the Xcode “new build system” when generating for Xcode 12.0 or higher. See the "CMAKE_XCODE_BUILD_SYSTEM" variable. One may use "-T buildsystem=1" to switch to the legacy build system. * The "Xcode" generator gained support for linking libraries and frameworks via the *Link Binaries With Libraries* build phase instead of always by embedding linker flags directly. This behavior is controlled by a new "XCODE_LINK_BUILD_PHASE_MODE" target property, which is initialized by a new "CMAKE_XCODE_LINK_BUILD_PHASE_MODE" variable. * The Visual Studio Generators for VS 2015 and above gained support for the Visual Studio Tools for Android. One may now set "CMAKE_SYSTEM_NAME" to "Android" to generate ".vcxproj" files for the Android tools. Languages --------- * CMake learned to support "ISPC" as a first-class language that can be enabled via the "project()" and "enable_language()" commands. "ISPC" is currently supported by the Makefile Generators and the "Ninja" generator on Linux, macOS, and Windows using the Intel ISPC compiler. * "CUDA" language support for Clang now includes: * separable compilation ("CUDA_SEPARABLE_COMPILATION"), and * finding scattered toolkit installations when cross-compiling. File-Based API -------------- * The "cmake-file-api(7)" “codemodel” version 2 "version" field has been updated to 2.2. * The "cmake-file-api(7)" “codemodel” version 2 “target” object gained a new "languageStandard" field in the "compileGroups" objects. Command-Line ------------ * The "cmake(1)" command-line tool’s "--install" mode gained a "-- default-directory-permissions" option. * "cmake(1)" gained a "-E create_hardlink" command-line tool that can be used to create hardlinks between files. GUI --- * The "CMake GUI" now has an environment variable editor. Commands -------- * The "add_test()" command now (officially) supports whitespace and other special characters in the name for the test it creates. See policy "CMP0110". * The "cmake_language()" command gained a "DEFER" mode to schedule command calls to occur at the end of processing a directory. * The "configure_file()" command gained a "NO_SOURCE_PERMISSIONS" option to suppress copying the input file’s permissions to the output file. * The "execute_process()" command gained a "COMMAND_ERROR_IS_FATAL" option to specify a fatal error. * The "file(ARCHIVE_CREATE)" command gained a "COMPRESSION_LEVEL" option to specify the compression level. * The "file(CHMOD)" and "file(CHMOD_RECURSE)" subcommands were added to set permissions of files and directories. * The "file(DOWNLOAD)" command "" argument is now optional. If it is not specified, the file is not saved. * The "file(GENERATE)" command gained a new "TARGET" keyword to support resolving target-dependent generator expressions. * The "file()" command gained a new "REAL_PATH" sub-command to compute a path with symlinks resolved. * The "find_package()" command learned to handle a version range. * The "separate_arguments()" command gained a new "PROGRAM" option. It allows the arguments to be treated as a program invocation and will resolve the executable to a full path if it can be found. * The "DIRECTORY" option of the "set_property()", "get_property()", and "get_directory_property()" commands now accepts references to binary directory paths, such as the value of "CMAKE_CURRENT_BINARY_DIR". * The "string()" command gained a set of new "JSON" sub commands that provide JSON parsing capabilities. Variables --------- * The "CMAKE_CLANG_VFS_OVERLAY" variable was added to tell Clang to use a VFS overlay to support the Windows SDK when cross-compiling from hosts with case-sensitive filesystems. * The "CMAKE_MFC_FLAG" variable now supports generator expressions. * The "CMAKE_OPTIMIZE_DEPENDENCIES" variable was added to initialize the new "OPTIMIZE_DEPENDENCIES" target property and avoid unnecessarily building dependencies for a static library. * The "CMAKE_PCH_INSTANTIATE_TEMPLATES" variable was added to initialize the new "PCH_INSTANTIATE_TEMPLATES" target property. * The "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM" variable was added to tell the Visual Studio Generators what maximum version of the Windows SDK to choose. Properties ---------- * The "EXCLUDE_FROM_ALL" target property now supports "generator expressions". * The "OPTIMIZE_DEPENDENCIES" target property was added to avoid unnecessarily building dependencies for a static library. * The "PCH_INSTANTIATE_TEMPLATES" target property was added to enable template instantiation in the precompiled header. This is enabled by default and may significantly improve compile times. Currently only supported for Clang (version 11 or later). * The "WIN32_EXECUTABLE" target property now supports "generator expressions". Modules ------- * The "CheckCompilerFlag" module has been added to generalize "CheckCCompilerFlag" and "CheckCXXCompilerFlag" to more languages. It also supports the "CUDA" and "ISPC" languages. * The "CheckLinkerFlag" module now supports the "CUDA" language. * The "CheckSourceCompiles" module has been added to generalize "CheckCSourceCompiles" and "CheckCXXSourceCompiles" to more languages. It also supports the "CUDA" and "ISPC" languages. * The "CheckSourceRuns" module has been added to generalize "CheckCSourceRuns" and "CheckCXXSourceRuns" to more languages. It also supports the "CUDA" language. * The "CMakePackageConfigHelpers" module gained support for version ranges. * The "FindCUDAToolkit" module gained support for finding CUDA toolkits that do not contain "nvcc", as well as for finding scattered toolkit installations when cross-compiling. * The "FindPackageHandleStandardArgs" module learned to handle version ranges. It also gained the "find_package_check_version()" command to check the validity of a version against version-related arguments of "find_package()" command. * The "FindPython3", "FindPython2" and "FindPython" modules gained the ability to handle a version range. * The "FindPython3", "FindPython2" and "FindPython" modules provide, respectively, the variable "Python3_LINK_OPTIONS", "Python2_LINK_OPTIONS" and "Python_LINK_OPTIONS" for link options. * The "FindSDL" module now provides: * An imported target "SDL::SDL". * Result variables "SDL_LIBRARIES" and "SDL_INCLUDE_DIRS". * Version variables "SDL_VERSION", "SDL_VERSION_MAJOR", "SDL_VERSION_MINOR", and "SDL_VERSION_PATCH". * The "FindSWIG" module gained the ability to handle a version range. * The "FindTIFF" module gained a "CXX" component to find the "tiffxx" library containing C++ bindings. * The "FindVulkan" module now provides a "Vulkan::glslc" imported target and associated "Vulkan_GLSLC_EXECUTABLE" variable which contain the path to the GLSL SPIR-V compiler. * The "UseSWIG" module gained support for new source file properties "OUTPUT_DIR" and "OUTFILE_DIR" to manage output directories on a per-source basis. CTest ----- * "ctest(1)" now supports the CUDA "compute-sanitizer" checker (previously known as "cuda-memcheck") as the "CTEST_MEMORYCHECK_COMMAND". The different tools ("memcheck", "racecheck", "synccheck" and "initcheck") supported by "compute- sanitizer" can be selected by adding appropriate flags to the "CTEST_MEMORYCHECK_COMMAND_OPTIONS" variable. The default flags are "--tool memcheck --leak-check full". CPack ----- * CPack gained the "CPACK_PRE_BUILD_SCRIPTS", "CPACK_POST_BUILD_SCRIPTS", and "CPACK_PACKAGE_FILES" variables. * The "CPack External Generator" gained the "CPACK_EXTERNAL_BUILT_PACKAGES" variable. * The "CPack WIX Generator" gained a "CPACK_WIX_CUSTOM_XMLNS" option to specify custom XML namespaces. Other ----- * Interface Libraries may now have source files added via "add_library()" or "target_sources()". Those with sources will be generated as part of the build system. Deprecated and Removed Features =============================== * Compatibility with versions of CMake older than 2.8.12 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. * An explicit deprecation diagnostic was added for policy "CMP0071" ("CMP0071" and below were already deprecated). The "cmake- policies(7)" manual explains that the OLD behaviors of all policies are deprecated and that projects should port to the NEW behaviors. * macOS SDKs older than 10.5 are no longer supported. * "cmake-gui(1)" now requires Qt5. Support for compiling with Qt4 has been removed. * The "cmake(1)" command-line option "--warn-unused-vars" has been removed and is now silently ignored. The option has not worked correctly since CMake 3.3. Documentation ============= The following guides have been added: * "IDE Integration Guide" * "Importing and Exporting Guide" Other Changes ============= * Building for macOS will now use the latest SDK available on the system, unless the user has explicitly chosen a SDK using "CMAKE_OSX_SYSROOT". The deployment target or system macOS version will not affect the choice of SDK. * The "CMAKE__COMPILER" variable may now be used to store “mandatory” compiler flags like the "CC" and other environment variables. * The "CMAKE__FLAGS_INIT" variable will now be considered during the compiler identification check if other sources like "CMAKE__FLAGS" or "CFLAGS" are not set. * The "find_program()" command now requires permission to execute but not to read the file found. See policy "CMP0109". * An imported target missing its location property fails during generation if the location is used. See policy "CMP0111". * The following target-based generator expressions that query for directory or file name components no longer add a dependency on the evaluated target. See policy "CMP0112". * "TARGET_FILE_DIR" * "TARGET_LINKER_FILE_BASE_NAME" * "TARGET_LINKER_FILE_NAME" * "TARGET_LINKER_FILE_DIR" * "TARGET_SONAME_FILE_NAME" * "TARGET_SONAME_FILE_DIR" * "TARGET_PDB_FILE_NAME" * "TARGET_PDB_FILE_DIR" * "TARGET_BUNDLE_DIR" * "TARGET_BUNDLE_CONTENT_DIR" * Makefile Generators no longer repeat custom commands from target dependencies. See policy "CMP0113". * The "ExternalProject" module handling of step target dependencies has been revised. See policy "CMP0114". * The "OSX_ARCHITECTURES" target property is now respected for the "ASM" language. * If "CUDA" compiler detection fails with user-specified "CMAKE_CUDA_ARCHITECTURES" or "CMAKE_CUDA_HOST_COMPILER", an error is raised. @ text @d1 1 a1 1 $NetBSD: patch-Source_QtDialog_CMakeLists.txt,v 1.1 2019/11/27 22:32:27 adam Exp $ d5 1 a5 1 --- Source/QtDialog/CMakeLists.txt.orig 2020-11-24 13:50:26.000000000 +0000 d7 1 a7 1 @@@@ -158,13 +158,13 @@@@ target_link_libraries(CMakeGUILib PUBLIC d15 1 d24 1 a24 1 @@@@ -194,7 +194,7 @@@@ Checks: '-*,llvm-twine-local' d33 1 a33 1 @@@@ -221,7 +221,7 @@@@ install(TARGETS cmake-gui d42 1 a42 1 @@@@ -240,14 +240,14 @@@@ if(UNIX AND NOT APPLE) @ 1.1 log @cmake: updated to 3.16.0 3.16.0: New Features ============ Languages --------- * CMake learned to support the Objective C ("OBJC") and Objective C++ ("OBJCXX") languages. They may be enabled via the "project()" and "enable_language()" commands. When "OBJC" or "OBJCXX" is enabled, source files with the ".m" or ".mm", respectively, will be compiled as Objective C or C++. Otherwise they will be treated as plain C++ sources as they were before. Compilers --------- * The "Clang" compiler is now supported on "Solaris". Platforms --------- * On AIX, executables using the "ENABLE_EXPORTS" target property now produce a linker import file with a ".imp" extension in addition to the executable file. Plugins (created via "add_library()" with the "MODULE" option) that use "target_link_libraries()" to link to the executable for its symbols are now linked using the import file. The "install(TARGETS)" command now installs the import file as an "ARCHIVE" artifact. * On AIX, runtime linking is no longer enabled by default. CMake provides the linker enough information to resolve all symbols up front. One may manually enable runtime linking for shared libraries and/or loadable modules by adding "-Wl,-G" to their link flags (e.g. in the "CMAKE_SHARED_LINKER_FLAGS" or "CMAKE_MODULE_LINKER_FLAGS" variable). One may manually enable runtime linking for executables by adding "-Wl,-brtl" to their link flags (e.g. in the "CMAKE_EXE_LINKER_FLAGS" variable). Command-Line ------------ * "cmake(1)" "-E" now supports "true" and "false" commands, which do nothing while returning exit codes of 0 and 1, respectively. * "cmake(1)" gained a "--trace-redirect=" command line option that can be used to redirect "--trace" output to a file instead of "stderr". * The "cmake(1)" "--loglevel" command line option has been renamed to "--log-level" to make it consistent with the naming of other command line options. The "--loglevel" option is still supported to preserve backward compatibility. Commands -------- * The "add_test()" command learned the option "COMMAND_EXPAND_LISTS" which causes lists in the "COMMAND" argument to be expanded, including lists created by generator expressions. * The "file()" command learned a new sub-command, "GET_RUNTIME_DEPENDENCIES", which allows you to recursively get the list of libraries linked by an executable or library. This sub- command is intended as a replacement for "GetPrerequisites". * The "find_file()", "find_library()", "find_path()", "find_package()", and "find_program()" commands have learned to check the following variables to control searching * "CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH" - Controls the searching the cmake-specific environment variables. * "CMAKE_FIND_USE_CMAKE_PATH" - Controls the searching the cmake- specific cache variables. * "CMAKE_FIND_USE_CMAKE_SYSTEM_PATH" - Controls the searching cmake platform specific variables. * "CMAKE_FIND_USE_PACKAGE_ROOT_PATH" - Controls the searching of "_ROOT" variables. * "CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH" - Controls the searching the standard system environment variables. * The "find_package()" command has learned to check the following variables to control searching * "CMAKE_FIND_USE_PACKAGE_REGISTRY" - Controls the searching the cmake user registry. * The "message()" command learned indentation control with the new "CMAKE_MESSAGE_INDENT" variable. * The "target_precompile_headers()" command was added to specify a list of headers to precompile for faster compilation times. Variables --------- * The "CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS" variable has been introduced to optionally initialize the "CUDA_RESOLVE_DEVICE_SYMBOLS" target property. * The "CMAKE_ECLIPSE_RESOURCE_ENCODING" variable was added to specify the resource encoding for the the "Eclipse CDT4" extra generator. Properties ---------- * The "BUILD_RPATH" and "INSTALL_RPATH" target properties now support "generator expressions". * The "INSTALL_REMOVE_ENVIRONMENT_RPATH" target property was added to remove compiler-defined "RPATH" entries from a target. This property is initialized by the "CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH" variable. * The "PRECOMPILE_HEADERS" target property was added to specify a list of headers to precompile for faster compilation times. Set it using the "target_precompile_headers()" command. * The "UNITY_BUILD" target property was added to tell generators to batch include source files for faster compilation times. * The "VS_CONFIGURATION_TYPE" target property now supports "generator expressions". * The "VS_DPI_AWARE" target property was added to tell Visual Studio Generators to set the "EnableDpiAwareness" property in ".vcxproj" files. * The "XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING" target property was added to tell the "Xcode" generator to set the value of the "Allow debugging when using document Versions Browser" schema option. Modules ------- * The "FindDoxygen" module "doxygen_add_docs()" command gained a new "USE_STAMP_FILE" option. When this option present, the custom target created by the command will only re-run Doxygen if any of the source files have changed since the last successful run. * The "FindGnuTLS" module now provides an imported target. * The "FindPackageHandleStandardArgs" module "find_package_handle_standard_args()" command gained a new "REASON_FAILURE_MESSAGE" option to specify a message giving the reason for the failure. * The "FindPkgConfig" module "pkg_search_module()" macro now defines a "_MODULE_NAME" result variable containing the first matching module name. * The "FindPython3" and "FindPython" modules gained options to control which "ABIs" will be searched. * The "FindPython3", "FindPython2", and "FindPython" modules now support direct specification of artifacts via cache entries. Autogen ------- * When using "AUTOMOC", CMake now generates the "-p" path prefix option for "moc". This ensures that "moc" output files are identical on different build setups (given, that the headers compiled by "moc" are in an "include directory"). Also it ensures that "moc" output files will compile correctly when the source and/or build directory is a symbolic link. The "moc" path prefix generation behavior can be configured by setting the new "CMAKE_AUTOMOC_PATH_PREFIX" variable and/or "AUTOMOC_PATH_PREFIX" target property. CTest ----- * "ctest(1)" now has the ability to serialize tests based on resource requirements for each test. See Resource Allocation for details. * A new test property, "SKIP_REGULAR_EXPRESSION", has been added. This property is similar to "FAIL_REGULAR_EXPRESSION" and "PASS_REGULAR_EXPRESSION", but with the same meaning as "SKIP_RETURN_CODE". This is useful, for example, in cases where the user has no control over the return code of the test. For example, in Catch2, the return value is the number of assertion failed, therefore it is impossible to use it for "SKIP_RETURN_CODE". CPack ----- * "cpack(1)" learned support for multiple configurations for "-C" option. * The "CPack DEB Generator" is now able to format generic text (usually used as the description for multiple CPack generators) according to the Debian Policy Manual. See the "CPACK_PACKAGE_DESCRIPTION_FILE" and "CPACK_DEBIAN__DESCRIPTION" variables. * The "CPack Archive Generator" learned to generate ".tar.zst" packages with Zstandard compression. Deprecated and Removed Features =============================== * An explicit deprecation diagnostic was added for policy "CMP0067" ("CMP0066" and below were already deprecated). The "cmake- policies(7)" manual explains that the OLD behaviors of all policies are deprecated and that projects should port to the NEW behaviors. * The "CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY" variable has been deprecated. Use the "CMAKE_FIND_USE_PACKAGE_REGISTRY" variable instead. * The "GetPrerequisites" module has been deprecated, as it has been superceded by "file(GET_RUNTIME_DEPENDENCIES)". * The "CPACK_INSTALL_SCRIPT" variable has been deprecated in favor of the new, more accurately named "CPACK_INSTALL_SCRIPTS" variable. Other Changes ============= * The "cmake(1)" "-C " option now evaluates the initial cache script with "CMAKE_SOURCE_DIR" and "CMAKE_BINARY_DIR" set to the top-level source and build trees. * The "cmake(1)" "-E remove_directory" command-line tool, when given the path to a symlink to a directory, now removes just the symlink. It no longer removes content of the linked directory. * The "ctest(1)" "--build-makeprogram" command-line option now specifies the make program used when configuring a project with the "Ninja" generator or the Makefile Generators. * The "ExternalProject" module "ExternalProject_Add()" command has been updated so that "GIT_SUBMODULES """ initializes no submodules. See policy "CMP0097". * The "FindGTest" module has been updated to recognize MSVC build trees generated by GTest 1.8.1. * The "project()" command no longer strips leading zeros in version components. See policy "CMP0096". * The Qt Compressed Help file is now named "CMake.qch", which no longer contains the release version in the file name. When CMake is upgraded in-place, the name and location of this file will remain constant. Tools such as IDEs, help viewers, etc. should now be able to refer to this file at a fixed location that remains valid across CMake upgrades. * "RPATH" entries are properly escaped in the generated CMake scripts used for installation. See policy "CMP0095". * When using "CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS" on Windows the auto- generated exports are now updated only when the object files providing the symbols are updated. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- Source/QtDialog/CMakeLists.txt.orig 2019-11-26 14:18:07.000000000 +0000 d7 8 a14 1 @@@@ -154,7 +154,7 @@@@ set(SRCS ${SRCS} ${UI_SRCS} ${MOC_SRCS} d16 1 a16 1 set(SRCS ${SRCS} CMakeSetup.rc) d20 1 a20 1 set(SRCS ${SRCS} CMakeSetup.icns) d23 1 a23 10 @@@@ -171,7 +171,7 @@@@ endif() set(CMAKE_INCLUDE_CURRENT_DIR ON) -add_executable(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS} ${MANIFEST_FILE}) +add_executable(cmake-gui WIN32 ${SRCS} ${MANIFEST_FILE}) target_link_libraries(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${CMake_QT_LIBRARIES}) if(WIN32) @@@@ -197,7 +197,7 @@@@ Checks: '-*,llvm-twine-local' d32 1 a32 1 @@@@ -224,7 +224,7 @@@@ install(TARGETS cmake-gui d41 1 a41 1 @@@@ -243,14 +243,14 @@@@ if(UNIX AND NOT APPLE) @