CMake/Tests/RunCMake
Ben Boeckel a9ad29403e Tests/CXXModules/vs-without-flags: use C++20
C++23 has complications with `import std` expectations.
2024-04-11 10:19:44 -04:00
..
ABI
add_compile_definitions Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
add_custom_command GeneratorExpression: Add $<QUOTE> generator expression 2024-02-14 14:23:18 -05:00
add_custom_target Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
add_dependencies Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
add_executable Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
add_library add_library: Reject shared libraries on platforms that do not support them 2024-03-29 11:06:32 -04:00
add_link_options Tests: Remove or silence instances of ${CMAKE_CFG_INTDIR} 2023-02-03 11:24:56 -05:00
add_subdirectory NVHPC: Support nvfortran versions that don't support isystem 2023-06-23 12:14:09 -04:00
add_test Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATOR 2024-01-29 10:30:24 -05:00
alias_targets Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Android
AndroidMK
AndroidTestUtilities
AppleSilicon macOS: Suppress default '-arch arm64' with CMAKE_<LANG>_COMPILER_TARGET 2023-03-15 10:50:26 -04:00
AppleTextStubs Apple Text Based Stubs: should be usage in subdirectories 2024-03-14 14:33:48 +01:00
AutoExportDll Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
Autogen Autogen/RCC: Disable zstd if it is not supported 2024-02-09 09:10:41 -05:00
block block: Fix variable scope protection from modification by subdirectories 2022-11-07 14:24:24 -05:00
build_command Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
BuildDepends Merge topic 'makefile-depfile' 2024-01-10 10:14:24 -05:00
BuiltinTargets Optionally make test target depend on all 2023-11-10 13:19:11 -05:00
BundleUtilities Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Byproducts Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CacheNewline Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CheckCompilerFlag Merge branch 'backport-3.28-ci-xcode-15.3' 2024-03-12 09:49:17 -04:00
CheckIPOSupported Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CheckLinkerFlag
CheckModules codespell: Fix typos 2023-05-22 16:51:15 -04:00
CheckSourceCompiles Tests: With lfortran < 1.24 skip cases broken by incorrect filename handling 2024-01-08 15:25:57 -05:00
CheckSourceRuns Tests: With lfortran < 1.24 skip cases broken by incorrect filename handling 2024-01-08 15:25:57 -05:00
ClangTidy Add generator expression support to static code analysis hooks 2023-03-27 11:48:41 -04:00
cmake_host_system_information cmake_host_system_information: Add MSYSTEM_PREFIX query 2023-09-10 07:33:47 -04:00
cmake_language Tests/RunCMake/cmake_language: test GET_EXPERIMENTAL_FEATURE_ENABLED 2024-04-10 00:56:44 -04:00
cmake_minimum_required Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMAKE_MSVCIDE_RUN_PATH
cmake_parse_arguments Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
cmake_path Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CMakeDependentOption Add deprecation warnings for policies CMP0128 and below 2024-02-06 17:07:09 -05:00
CMakePackage CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variable 2024-04-11 09:23:46 -04:00
CMakePresets presets: Expand more macros in the include directive 2024-02-21 13:47:08 -05:00
CMakePresetsBuild presets: Improve JSON parser and error messages 2023-03-29 10:41:19 -04:00
CMakePresetsPackage presets: Improve JSON parser and error messages 2023-03-29 10:41:19 -04:00
CMakePresetsTest presets: Improve JSON parser and error messages 2023-03-29 10:41:19 -04:00
CMakePresetsWorkflow presets: Improve JSON parser and error messages 2023-03-29 10:41:19 -04:00
CMakeRelease
CMakeRoleGlobalProperty
CMP0004 Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CMP0019 Tests: Teach RunCMake to optionally ignore policy version deprecation warnings 2023-02-09 16:20:31 -05:00
CMP0022 Tests: Teach RunCMake to optionally ignore policy version deprecation warnings 2023-02-09 16:20:31 -05:00
CMP0026 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0027
CMP0037 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0038 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0039 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0040 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0041 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0042 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0043 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0045 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0046 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0049 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0050 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0051 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0053 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0054 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0055 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0057 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0059
CMP0060 OrangeC: Add support for OrangeC compiler 2023-09-25 12:27:29 -04:00
CMP0064 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0065 Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
CMP0068
CMP0069
CMP0081 Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CMP0102 Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CMP0104
CMP0106 Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CMP0111 cmTarget: Add a way to represent imported shared library stubs 2023-07-18 13:21:01 -04:00
CMP0115 Add deprecation warnings for policies CMP0120 and below 2023-06-07 14:31:50 -04:00
CMP0116 Add deprecation warnings for policies CMP0120 and below 2023-06-07 14:31:50 -04:00
CMP0118 CMP0118: Revise documentation to describe actual behavior 2024-03-21 11:37:46 -04:00
CMP0119 OrangeC: Add support for OrangeC compiler 2023-09-25 12:27:29 -04:00
CMP0121 GenEx LIST: list operations 2023-04-16 12:00:20 +02:00
CMP0125
CMP0126 Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
CMP0129
CMP0132
CMP0135
CMP0139 Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CMP0150 ExternalProject/FetchContent: Support relative remote URLs 2023-04-26 16:30:36 +08:00
CMP0152 file(REAL_PATH): resolve symlinks before '..' components 2023-07-20 17:02:58 -04:00
CMP0153 CMP0153: Add suggestion to use execute_process() 2023-10-27 09:43:18 -04:00
CMP0156 Link step: Enable to configure deduplication of libraries 2023-11-09 19:20:40 +01:00
CMP0160 cmTarget: Don't allow setting read-only properties 2024-01-23 08:50:38 -05:00
CMP0163 CMP0163: Make GENERATED source file property globally visible 2024-03-29 08:54:11 -04:00
CMP0165 enable_language(): Fail if called before project() 2024-04-02 23:00:38 +11:00
Color Makefiles: quote $(COLOR) expansions 2023-06-08 11:05:11 -04:00
CommandLine fileapi: Add CONFIGURE_DEPENDS glob info to cmakeFiles object 2024-03-19 14:55:25 -04:00
CommandLineTar Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CompatibleInterface Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CompileDefinitions Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
CompileFeatures Merge topic 'ci-xcode-15.3' 2024-03-13 10:51:13 -04:00
CompilerArgs Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CompilerChange Fix regression on reconfigure with unnormalized -DCMAKE_<LANG>_COMPILER= 2024-04-10 12:03:17 -04:00
CompilerLauncher Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CompilerNotFound cmGlobalGenerator: hint about missing extensions on Windows 2023-10-24 11:21:31 -04:00
CompilerTest
CompileWarningAsError Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
Configure Tests: Add case covering non-writable CMAKE_BINARY_DIR 2023-11-30 17:07:31 -05:00
configure_file Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
continue Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CPack Tests: Enable RunCMake.CPack_External test more reliably 2024-03-11 16:35:44 -04:00
CPack_WIX CPack/WIX: Add support for WiX Toolset v4 2024-03-24 15:26:39 -04:00
CPackCommandLine
CPackConfig CPack: Change CPACK_PRODUCTBUILD_DOMAINS default to true (CMP0161) 2024-01-28 21:09:12 +11:00
CPackInstallProperties Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CPackSymlinks Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Cppcheck Add generator expression support to static code analysis hooks 2023-03-27 11:48:41 -04:00
Cpplint Add generator expression support to static code analysis hooks 2023-03-27 11:48:41 -04:00
CrosscompilingEmulator Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATOR 2024-01-29 10:30:24 -05:00
CSharpCustomCommand Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CSharpReferenceImport Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CTest Dart,FindDart: Add policy to remove these modules 2023-02-28 08:43:45 -05:00
ctest_build Tests: Migrate CTestTest{NoBuild,NoExe} to RunCMake.ctest_{build,test} 2023-09-07 11:46:53 -04:00
ctest_cmake_error Tests: Update cmake_minimum_required version in RunCMake ctest cases 2024-03-29 14:17:58 -04:00
ctest_configure Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
ctest_coverage Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
ctest_disabled_test
ctest_empty_binary_directory ctest_empty_binary_directory: Report more detail in failure message 2023-11-09 09:11:55 -05:00
ctest_environment Tests: Factor out RunCMake ctest environment isolation 2022-11-14 11:05:56 -05:00
ctest_fixtures CTest: Throw error if resource spec is invalid 2024-02-08 09:02:33 -05:00
ctest_labels_for_subprojects Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
ctest_memcheck codespell: Fix typos 2023-11-17 09:58:21 -05:00
ctest_skipped_test
ctest_start Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
ctest_submit ctest: Fall back to CMake environment variable for TLS server verification 2024-03-30 09:22:05 -04:00
ctest_test ctest: Restore enforcement of RESOURCE_LOCK test property 2024-04-01 12:22:29 -04:00
ctest_update Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
ctest_upload ctest: include "Time" element in Upload.xml 2024-02-27 13:51:11 -05:00
CTestCommandExpandLists Tests: Avoid using CMake{Output,Error}.log files 2023-01-18 16:40:19 -05:00
CTestCommandLine Merge topic 'ctest-invalid-arg' 2024-04-05 11:55:47 -04:00
CTestResourceAllocation CTest: Throw error if resource spec is invalid 2024-02-08 09:02:33 -05:00
CTestTimeout Tests: Do not expect EINTR when sleep is interrupted on GNU/Hurd 2023-12-08 09:07:24 -05:00
CTestTimeoutAfterMatch Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
CUDA_architectures CUDA: Factor out helper to validate CMAKE_CUDA_ARCHITECTURES 2023-09-21 15:34:28 -04:00
CXXModules Tests/CXXModules/vs-without-flags: use C++20 2024-04-11 10:19:44 -04:00
define_property Tests: Add unit tests for property redefinition 2024-01-29 05:23:37 -05:00
DependencyGraph Tests: Update tests to run in symlinked tree 2023-09-22 09:30:52 -04:00
DependencyProviders FetchContent: Fix FIND_PACKAGE_ARGS not being passed to dep providers 2023-12-16 16:42:00 +11:00
DisallowedCommands Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
ExcludeFromAll Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
execute_process Tests: Add case to cover execute_process support for no extension on Windows 2023-11-30 09:59:36 -05:00
export EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate 2024-03-12 14:24:53 -04:00
ExportCompileCommands
ExportImport Genex: Add $<BUILD_LOCAL_INTERFACE:...> genex 2022-11-17 09:31:27 -05:00
ExportWithoutLanguage
ExternalData Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
ExternalProject ExternalProject: Add TLS version options for https connections 2024-02-28 19:11:29 -05:00
ExtraGenerators Deprecate "extra" generators in favor of cmake-file-api(7) 2023-02-15 10:48:26 -05:00
FeatureSummary Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
FetchContent ExternalProject: Add TLS version options for https connections 2024-02-28 19:11:29 -05:00
FetchContent_find_package
file file(DOWNLOAD|UPLOAD): Add TLS_VERSION option for https connections 2024-02-28 08:40:14 -05:00
File_Archive Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
File_Configure
File_Generate Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
file-CHMOD
file-DOWNLOAD file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERIFY environment variable 2024-03-30 09:22:04 -04:00
file-GET_RUNTIME_DEPENDENCIES OrangeC: Add support for OrangeC compiler 2023-09-25 12:27:29 -04:00
file-RPATH cmELF: Get correct section count for large ELF binaries 2024-03-22 10:18:06 -04:00
file-STRINGS file: STRINGS + REGEX store match results 2024-01-09 16:36:55 -05:00
FileAPI fileapi: Add CONFIGURE_DEPENDS glob info to cmakeFiles object 2024-03-19 14:55:25 -04:00
FileAPIExternalSource
find_dependency Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
find_file Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
find_library MSVC: Teach find_library to consider the 'libfoo.a' naming convention 2024-01-19 17:12:36 -05:00
find_package MinGW: Search for packages in standard MSYSTEM environment prefixes 2023-09-13 08:35:59 -04:00
find_path Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
find_program Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
FindBoost Tests: Teach RunCMake.FindBoost to avoid finding an external Boost 2022-12-07 08:21:39 -05:00
FindGTK2 Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
FindLua Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
FindMatlab Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
FindOpenGL FindOpenGL: Add support for a separate GLU include directory 2024-02-05 14:06:06 -05:00
FindOpenSSL Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
FindPkgConfig Tests: Update RunCMake.FindPkgConfig gobject-introspection expectation 2024-04-08 18:09:59 -04:00
FindSWIG Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
foreach Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
FPHSA Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Framework Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
function
GenerateExportHeader GenerateExportHeader: Suppress clang-tidy warning 2024-04-10 16:43:48 -04:00
GeneratorExpression Genex: Restore REMOVE_DUPLICATES preservation of empty elements 2023-07-12 11:49:21 -04:00
GeneratorExpressionShortCircuit cmGeneratorExpressionNode: Fix short-circuit logic 2023-11-13 11:11:18 -05:00
GeneratorInstance VS: Add a variable to report the Visual Studio version build number 2022-12-07 17:49:04 -05:00
GeneratorPlatform VS: Select latest Windows SDK even when targeting Windows 8.1 and below 2023-08-10 09:59:25 -04:00
GeneratorToolset VS: Add support for using Intel oneAPI Fortran compiler in .vfproj files 2023-11-22 10:22:12 -05:00
GenEx-COMPILE_LANG_AND_ID
GenEx-COMPILE_LANGUAGE Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
GenEx-DEVICE_LINK
GenEx-GENEX_EVAL
GenEx-HOST_LINK
GenEx-LINK_GROUP
GenEx-LINK_LANG_AND_ID
GenEx-LINK_LANGUAGE
GenEx-LINK_LIBRARY codespell: Fix typos 2023-05-22 16:51:15 -04:00
GenEx-LIST list(INSERT): restore old behavior 2023-08-17 12:07:41 +02:00
GenEx-PATH PATH-genex: handle lists for path decomposition and transformations 2023-02-21 19:34:43 +01:00
GenEx-PATH_EQUAL
GenEx-TARGET_FILE Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
GenEx-TARGET_IMPORT_FILE Apple: Handle generation and comsuption of text-based stubs (.tbd files) 2023-03-01 12:23:28 +01:00
GenEx-TARGET_PROPERTY Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
GenEx-TARGET_RUNTIME_DLLS Add test for the new TARGET_RUNTIME_DLL_PATHS genex 2023-02-26 16:37:37 +01:00
get_filename_component Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
get_property get_test_property(): Add DIRECTORY option 2023-08-11 10:50:52 -04:00
GetPrerequisites Tests: Improve RunCMake.GetPrerequisites sample executable selection 2022-11-02 13:45:05 -04:00
GNUInstallDirs Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
GoogleTest Tests: Fix ctest flag typo in RunCMake.GoogleTest 2024-04-03 21:32:08 -04:00
Graphviz Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
IAR Tests/RunCMake/IAR: Extend tests to actually build 2024-02-12 14:42:54 -05:00
if Tests: Factor out RunCMake helper to get UNIX user id 2023-11-30 17:05:00 -05:00
IfacePaths Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
include FindPython{Interp,Libs}: Add policy to remove these modules 2023-03-30 12:05:09 -04:00
include_directories Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
include_external_msproject Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
include_guard
IncludeWhatYouUse IWYU: Return error code if user enables error reporting 2023-04-25 11:18:36 -04:00
IncompatibleQt
InitialFlags
install EXPORT_PACKAGE_DEPENDENCIES: Add experimental feature gate 2024-03-12 14:24:53 -04:00
INSTALL_NAME_DIR
InterfaceLibrary Tests/RunCMake: Match 'Tried extensions' output more robustly 2023-03-09 14:35:05 -05:00
Languages Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
LinkerLauncher <LANG>_LINKER_LAUNCHER: Allow generator expressions 2023-02-02 11:58:56 -05:00
LinkerSelection Swift: Add CMAKE_LINKER_TYPE support 2024-04-02 10:42:12 -04:00
LinkItemValidation Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
LinkLibrariesProcessing Link step: Enable to configure deduplication of libraries 2023-11-09 19:20:40 +01:00
LinkStatic Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
LinkWhatYouUse Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
list list(): restore SUBLIST behavior 2023-06-16 15:14:03 +02:00
load_cache
MacOSVersions codespell: Avoid escape sequence that looks like misspelled "nodes" 2023-05-22 16:50:51 -04:00
Make ctest: Allow passing -j without value to choose a contextual default 2024-03-10 11:41:39 -04:00
math Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
MaxRecursionDepth find_package: Enforce maximum nesting depth below maximum recursion depth 2023-03-13 11:48:19 -04:00
message codespell: Fix typos 2023-05-22 16:51:15 -04:00
MetaCompileFeatures
MSVCDebugInformationFormat
MSVCRuntimeLibrary
MSVCRuntimeTypeInfo Add deprecation warnings for policies CMP0120 and below 2023-06-07 14:31:50 -04:00
MSVCWarningFlags
MultiLint Linting: Fix empty evaluated genex 2023-09-25 09:16:33 -04:00
Ninja Merge topic 'clang-cl-showIncludes' 2024-02-08 09:40:54 -05:00
NinjaMultiConfig CUDA/Clang: Add support for MSVC ABI on Windows using GNU-like frontend 2024-01-22 09:33:54 -05:00
NinjaPrivateDeps Tests/NinjaPrivateDeps: fix error message for Build-PrivateFileSet-check 2023-10-16 11:38:43 -04:00
no_install_prefix Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
ObjectLibrary Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
ObsoleteQtMacros
option
ParseImplicitData Tests: Cover detection of linker tool for Intel on Windows 2024-01-03 16:24:57 -05:00
ParseImplicitIncludeInfo Tests: Update sample data for parsing implicit link/include information 2024-01-03 16:20:27 -05:00
ParseImplicitLinkInfo Tests: Verify that linker tool is detected and identified where expected 2024-01-03 17:07:53 -05:00
Policy
PolicyScope Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
PositionIndependentCode Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
PrecompileHeaders Merge topic 'restore-pch-with-unity' 2024-02-05 09:57:19 -05:00
PrintHelpers Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
project CMAKE_PROJECT_INCLUDE: Allow to run module files 2023-10-18 18:01:05 +02:00
project_injected Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
property_init fileapi: Add test launcher to codemodel-v2 2023-12-13 10:20:43 -05:00
return
RunCPack Tests: Teach RunCMake.CPack_WIX to honor windows-arm64 hosts 2024-03-18 15:12:02 -04:00
RuntimePath Link explicitly to private transitive dependencies on stub libraries 2024-01-04 11:59:26 -05:00
ScriptMode
separate_arguments Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
set set: Improve diagnostics for CACHE mode 2023-08-02 10:07:56 -04:00
set_property cmTarget: Don't allow setting read-only properties 2024-01-23 08:50:38 -05:00
set_tests_properties set_tests_properties(): Add DIRECTORY option 2023-08-11 10:50:52 -04:00
SourceProperties Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
string Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Swift Swift: Ninja: Pass module name to all swift builds 2024-02-23 11:12:05 -05:00
SymlinkTrees Tests/RunCMake: Set $ENV{PWD} before each test 2023-09-11 16:58:14 -04:00
Syntax Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
target_compile_definitions Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_compile_features Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_compile_options Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_include_directories
target_link_directories
target_link_libraries Merge topic 'Xcode-Check-Imported-Framework' 2023-12-19 08:04:01 -05:00
target_link_libraries-ALIAS Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_link_libraries-LINK_GROUP Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_link_libraries-LINK_LANG_AND_ID Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_link_libraries-LINK_LANGUAGE Tests: Fix clang -Wstrict-prototypes warnings 2023-10-26 09:20:45 -04:00
target_link_libraries-LINK_LIBRARY LINK_LIBRARY-genex: correct behavior for INTERFACE_LINK_LIBRARIES_DIRECT 2023-11-29 11:26:52 -05:00
target_link_options LINK_OPTIONS: ensure correct dollar escaping 2023-07-17 15:55:58 +02:00
target_sources cmTarget: Don't allow setting read-only properties 2024-01-23 08:50:38 -05:00
TargetArtifacts Add option to add SOVERSION to DLL names 2023-02-27 09:18:34 -05:00
TargetObjects Restore support for TARGET_OBJECTS in link interfaces with unity builds 2024-02-21 17:08:57 -05:00
TargetPolicies VS: Add UseDebugLibraries to vcxproj files by default 2024-02-22 08:43:16 -05:00
TargetProperties Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
test_include_dirs Tests: Isolate more RunCMake cases from external ctest environment values 2022-11-14 11:08:45 -05:00
TIClang TIClang: Add support for TI Clang-based compilers, including tiarmclang 2024-02-09 15:54:40 -05:00
ToolchainFile Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
TransformDepfile cmTransformDepfile: warn when a depfile is not written to 2023-11-01 14:08:18 -04:00
try_compile try_compile(): Include languages with _ or - when passing linker vars 2024-03-22 21:35:51 +11:00
try_run Tests: Fix RunCMake.try_run case on gfortran < 4.3 2023-12-07 10:49:25 -05:00
UnityBuild Unity: Enable UNITY_BUILD for OBJC and OBJCXX files 2023-10-26 10:01:41 -04:00
UseSWIG Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
variable_watch Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
VerifyHeaderSets VERIFY_INTERFACE_HEADER_SETS: Suppress clang-tidy include checks 2024-04-08 19:15:21 -04:00
VisibilityPreset Deprecate compatibility with CMake versions older than 3.5 2023-02-11 06:25:11 -05:00
VS10Project VS: Suppress MSBuild default settings affected by UseDebugLibraries 2024-02-19 10:40:40 -05:00
VS10ProjectUseDebugLibraries VS: Add UseDebugLibraries to vcxproj files by default 2024-02-22 08:43:16 -05:00
VS10ProjectWinCE
VsDotnetSdk Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
VsNugetPackageRestore
VSSolution Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
while Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Win32GenEx
WorkingDirectory
WriteBasicConfigVersionFile
WriteCompilerDetectionHeader Add deprecation warnings for policies CMP0120 and below 2023-06-07 14:31:50 -04:00
XcFramework Merge branch 'backport-3.28-visionOS' into visionOS 2024-02-09 11:37:11 -05:00
XcodeProject Xcode: Generate BuildableProductRunnable for ProfileAction 2024-02-15 16:37:07 +01:00
XcodeProject-Device Merge branch 'backport-3.28-visionOS' into visionOS 2024-02-09 11:37:11 -05:00
XcodeProject-Embed Xcode: Add support to embed XPC Services 2023-11-30 10:09:34 +13:00
AddRunCMakeTest.cmake Tests/RunCMake: Add script to auto-generate RunCMake test suite stub 2023-03-07 14:30:29 -05:00
CMakeLists.txt Merge topic 'enable_language-before-project' 2024-04-03 09:38:46 -04:00
color_warning.c
detect_jobserver.c Reduce scope of variable 2024-02-14 20:46:03 +01:00
exit_code.c
fake_build_command.c
FileAPIDummyFile.cmake
print_stdin.c Fix clang -Wstrict-prototypes by making main take void instead of nothing 2023-10-20 12:20:13 -04:00
pseudo_cppcheck.c
pseudo_cpplint.c
pseudo_emulator_custom_command_arg.c
pseudo_emulator_custom_command.c
pseudo_emulator.c Tests: Teach pseudo_emulator helper to pass by default 2024-01-27 09:50:43 -05:00
pseudo_iwyu.c
pseudo_llvm-rc.c
pseudo_tidy.c clang-tidy: add <LANG>_CLANG_TIDY_EXPORT_FIXES_DIR property 2022-12-06 10:39:29 -05:00
README.rst Tests/RunCMake: Add new infrastructure to run cpack 2024-03-18 14:04:17 -04:00
RunCMake.cmake Tests/RunCMake: Add option to print custom details in failure output 2024-03-18 14:04:17 -04:00
RunCPack.cmake Tests/RunCMake: Add new infrastructure to run cpack 2024-03-18 14:04:17 -04:00
RunCTest.cmake Tests/RunCMake: Add copyright and license notices to test infrastructure 2024-02-05 12:39:56 -05:00
showIncludes.c Merge topic 'clang-cl-showIncludes' 2024-02-08 09:40:54 -05:00

This directory contains tests that run CMake to configure a project
but do not actually build anything.  To add a test:

1. Add a subdirectory named for the test, say ``<Test>/``.

2. In ``./CMakeLists.txt`` call ``add_RunCMake_test`` and pass the
   test directory name ``<Test>``.

3. Create script ``<Test>/RunCMakeTest.cmake`` in the directory containing::

    include(RunCMake)
    run_cmake(SubTest1)
    ...
    run_cmake(SubTestN)

   where ``SubTest1`` through ``SubTestN`` are sub-test names each
   corresponding to an independent CMake run and project configuration.

   One may also add calls of the form::

    run_cmake_command(SubTestI ${CMAKE_COMMAND} ...)

   to fully customize the test case command-line.

   Alternatively, if the test is to cover running ``ctest -S`` then use::

    include(RunCTest)
    run_ctest(SubTest1)
    ...
    run_ctest(SubTestN)

   and create ``test.cmake.in``, ``CTestConfig.cmake.in``, and
   ``CMakeLists.txt.in`` files to be configured for each case.

   Alternatively, if the test is to cover running ``cpack -G`` then use::

    include(RunCPack)
    run_cpack(Sample1)
    ...
    run_cpack(SampleN)

   where ``Sample1`` through ``SampleN`` are sample project directories
   in the ``RunCPack/`` directory adjacent to this file.

4. Create file ``<Test>/CMakeLists.txt`` in the directory containing::

    cmake_minimum_required(...)
    project(${RunCMake_TEST} NONE) # or languages needed
    include(${RunCMake_TEST}.cmake)

   where ``${RunCMake_TEST}`` is literal.  A value for ``RunCMake_TEST``
   will be passed to CMake by the ``run_cmake`` macro when running each
   sub-test.

5. Create a ``<Test>/<SubTest>.cmake`` file for each sub-test named
   above containing the actual test code.  Optionally create files
   containing expected test results:

   ``<SubTest>-result.txt``
    Regex matching expected process result, if not ``0``
   ``<SubTest>-stdout.txt``
    Regex matching expected stdout content
   ``<SubTest>-stderr.txt``
    Regex matching expected stderr content, if not ``^$``
   ``<SubTest>-check.cmake``
    Custom result check.

  Note that when a specific platform expects differing stdout or stderr that
  can be done by adding a platform specific output file. These follow the
  naming convention of:
   ``<SubTest>-stdout-<platform_lower_case>.txt``
   ``<SubTest>-stderr-<platform_lower_case>.txt``

   Note that trailing newlines will be stripped from actual and expected
   test output before matching against the stdout and stderr expressions.
   The code in ``<SubTest>-check.cmake`` may use variables

   ``RunCMake_TEST_SOURCE_DIR``
    Top of test source tree
   ``RunCMake_TEST_BINARY_DIR``
    Top of test binary tree

   and an failure must store a message in ``RunCMake_TEST_FAILED``.
   The check script may optionally set ``RunCMake_TEST_FAILURE_MESSAGE``
   with additional text to be included in the message if the test fails.

To speed up local testing, you can choose to run only a subset of
``run_cmake()`` tests in a ``RunCMakeTest.cmake`` script by using the
``RunCMake_TEST_FILTER`` environment variable. If this variable is set,
it is treated as a regular expression, and any tests whose names don't
match the regular expression are not run. For example::

  $ RunCMake_TEST_FILTER="^example" ctest -R '^RunCMake\.Example$'

This will only run subtests in ``RunCMake.Example`` that start with
``example``.

To speed up the process of creating a new ``RunCMake`` test, you can run a
script that will automatically perform steps 1 through 4 for you::

  cmake -DRunCMake_TEST_SUITE=<test suite name> -P Tests/RunCMake/AddRunCMakeTestSuite.cmake

Be sure to run this from the top-level CMake source directory.