mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'build-databases'
e77655555ccmExperimental: gate build database support behind a flag23cbeb5035ci: enable `build_database` CXXModules tests6863c1d823Tests/CXXModules: add tests for module commands123107c1a4Tests/CXXModules: add support for running targets under a given config438038b5e1Tests/CXXModules: support building specific targets of example trees84bc710d84cmGlobalGenerator: generate build database files for targets670f753f24cmDyndepCollation: write build database metadatadcf9a66ffecxxmodules: plumb control data for exporting build databases ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9708
This commit is contained in:
@@ -78,6 +78,13 @@ if(NOT DEFINED CMAKE_EXPORT_COMPILE_COMMANDS AND CMAKE_GENERATOR MATCHES "Ninja|
|
||||
mark_as_advanced(CMAKE_EXPORT_COMPILE_COMMANDS)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED CMAKE_EXPORT_BUILD_DATABASE AND CMAKE_GENERATOR MATCHES "Ninja")
|
||||
set(CMAKE_EXPORT_BUILD_DATABASE "$ENV{CMAKE_EXPORT_BUILD_DATABASE}"
|
||||
CACHE BOOL "Enable/Disable output of build database during the build."
|
||||
)
|
||||
mark_as_advanced(CMAKE_EXPORT_BUILD_DATABASE)
|
||||
endif()
|
||||
|
||||
# GetDefaultWindowsPrefixBase
|
||||
#
|
||||
# Compute the base directory for CMAKE_INSTALL_PREFIX based on:
|
||||
|
||||
Reference in New Issue
Block a user