diff options
author | Brad King <brad.king@kitware.com> | 2024-09-05 13:20:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-09-05 13:20:23 (GMT) |
commit | 2daeb0b50484e4133a16eb7cb6d483304baef7f1 (patch) | |
tree | d3ff58ef09df3ec8431293b8bbfcd998e605c228 /Source/cmcmd.cxx | |
parent | cc527ab5830c5a52d36a633b8e0adbed476698d7 (diff) | |
parent | e77655555cd17b5b2d4adf86eeb013e49de35cce (diff) | |
download | CMake-2daeb0b50484e4133a16eb7cb6d483304baef7f1.zip CMake-2daeb0b50484e4133a16eb7cb6d483304baef7f1.tar.gz CMake-2daeb0b50484e4133a16eb7cb6d483304baef7f1.tar.bz2 |
Merge topic 'build-databases'
e77655555c cmExperimental: gate build database support behind a flag
23cbeb5035 ci: enable `build_database` CXXModules tests
6863c1d823 Tests/CXXModules: add tests for module commands
123107c1a4 Tests/CXXModules: add support for running targets under a given config
438038b5e1 Tests/CXXModules: support building specific targets of example trees
84bc710d84 cmGlobalGenerator: generate build database files for targets
670f753f24 cmDyndepCollation: write build database metadata
dcf9a66ffe cxxmodules: plumb control data for exporting build databases
...
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9708
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index c6d89bd..22381bc 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -78,6 +78,9 @@ int cmcmd_cmake_ninja_depends(std::vector<std::string>::const_iterator argBeg, std::vector<std::string>::const_iterator argEnd); int cmcmd_cmake_ninja_dyndep(std::vector<std::string>::const_iterator argBeg, std::vector<std::string>::const_iterator argEnd); +int cmcmd_cmake_module_compile_db( + std::vector<std::string>::const_iterator argBeg, + std::vector<std::string>::const_iterator argEnd); namespace { // ATTENTION If you add new commands, change here, @@ -1394,6 +1397,11 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args, } #endif + // Internal CMake C++ module compilation database support. + if (args[1] == "cmake_module_compile_db") { + return cmcmd_cmake_module_compile_db(args.begin() + 2, args.end()); + } + // Internal CMake unimplemented feature notification. if (args[1] == "cmake_unimplemented_variable") { std::cerr << "Feature not implemented for this platform."; |