1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
12 #include "cmCommand.h"
13 #include "cmCoreTryCompile.h"
15 class cmExecutionStatus;
17 /** \class cmTryCompileCommand
18 * \brief Specifies where to install some files
20 * cmTryCompileCommand is used to test if source code can be compiled
22 class cmTryCompileCommand : public cmCoreTryCompile
26 * This is a virtual constructor for the command.
28 std::unique_ptr<cmCommand> Clone() override
30 return cm::make_unique<cmTryCompileCommand>();
34 * This is called when the command is first encountered in
35 * the CMakeLists.txt file.
37 bool InitialPass(std::vector<std::string> const& args,
38 cmExecutionStatus& status) override;