mirror of
https://github.com/Kitware/CMake.git
synced 2025-05-09 23:08:18 +08:00

Remove unnecessary check of policy CMP0049. The policy can never trigger on our internally-generated name because it has no variable references. The rename in commit 0ed5ce4cd8 (cmTarget: Rename AddSource method for backward compatibility., 2014-03-17, v3.1.0-rc1~688^2~17) made it look like this code path depended on CMP0049. Then commit 0e1faa28cb (cmMakefile: Separate custom command setup from actual creation, 2019-09-14, v3.16.0-rc1~85^2) and commit ea1bed34b2 (cmMakefile: Extract utilities used for creation of custom commands, 2019-09-21, v3.16.0-rc1~52^2~1) built additional infrastructure to thread that dependence through the call stack. Remove it all.
30 lines
552 B
C++
30 lines
552 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <string>
|
|
|
|
/** Target custom command type */
|
|
enum class cmCustomCommandType
|
|
{
|
|
PRE_BUILD,
|
|
PRE_LINK,
|
|
POST_BUILD
|
|
};
|
|
|
|
/** Where the command originated from. */
|
|
enum class cmCommandOrigin
|
|
{
|
|
Project,
|
|
Generator
|
|
};
|
|
|
|
/** How to handle custom commands for object libraries */
|
|
enum class cmObjectLibraryCommands
|
|
{
|
|
Reject,
|
|
Accept
|
|
};
|