CMake/Source/cmSourceFileLocationKind.h
Ben Boeckel b0716fbcc5 cmSourceFileLocation: allow skipping ambiguous extensions
The ambiguous extension logic is an old behavior that ends up taking
lots of extra compute cycles to execute. This is triggered by various
CMake codepaths which pass extension-less paths down when CMake actually
knows that they are not ambiguous. These codepaths will be indicated in
upcoming changes.

Various APIs have gained a cmSourceFileLocationKind parameter, but they
are all optional and default to the existing behavior.
2018-01-10 11:21:11 -05:00

16 lines
460 B
C

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmSourceFileLocationKind_h
#define cmSourceFileLocationKind_h
enum class cmSourceFileLocationKind
{
// The location is user-specified and may be ambiguous.
Ambiguous,
// The location is known to be at the given location; do not try to guess at
// extensions or absolute path.
Known
};
#endif