Revision 20fa4ce8d89369441dc4f8a74d62611e8dfa36ea authored by Matthew Woehlke on 18 July 2024, 16:07:26 UTC, committed by Matthew Woehlke on 23 July 2024, 16:13:39 UTC
In order to support generation of Common Package Specifications, the mechanisms CMake uses to export package information need to be made more abstract. The prior commits began this refactoring; this continues by (actually) restructuring the classes used to generate the actual export files. To minimize churn, this introduces virtual base classes and diamond inheritance in order to separate logic which is format-agnostic but depends on the export mode (build-tree versus install-tree) from logic which is format-specific but mode-agnostic. This could probably be refactored further to use helper classes instead, and a future commit may do that, however an initial attempt to do that was proving even more invasive, such that this approach was deemed more manageable. While we're at it, add 'const' in more places where possible.
1 parent 6c66340
FindDart.cmake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#[=======================================================================[.rst:
FindDart
--------
.. deprecated:: 3.27
This module is available only if policy :policy:`CMP0145` is not set to ``NEW``.
Find DART
This module looks for the dart testing software and sets DART_ROOT to
point to where it found it.
#]=======================================================================]
if(_FindDart_testing)
set(_FindDart_included TRUE)
return()
endif()
find_path(DART_ROOT README.INSTALL
HINTS
ENV DART_ROOT
PATHS
${PROJECT_SOURCE_DIR}
/usr/share
C:/
"C:/Program Files"
${PROJECT_SOURCE_DIR}/..
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
ENV ProgramFiles
PATH_SUFFIXES
Dart
DOC "If you have Dart installed, where is it located?"
)
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)
mark_as_advanced(DART_ROOT)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...