2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2004-04-23 16:20:36 -04:00
|
|
|
#ifndef cmGetDirectoryPropertyCommand_h
|
|
|
|
#define cmGetDirectoryPropertyCommand_h
|
|
|
|
|
2017-08-25 20:39:02 +02:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2017-04-11 21:42:35 +02:00
|
|
|
|
2016-10-25 20:35:04 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2004-04-23 16:20:36 -04:00
|
|
|
#include "cmCommand.h"
|
|
|
|
|
2016-10-25 20:35:04 +02:00
|
|
|
class cmExecutionStatus;
|
|
|
|
|
2004-04-23 16:20:36 -04:00
|
|
|
class cmGetDirectoryPropertyCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
2017-09-15 09:56:26 -04:00
|
|
|
cmCommand* Clone() override { return new cmGetDirectoryPropertyCommand; }
|
2004-04-23 16:20:36 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the input file.
|
|
|
|
*/
|
2016-06-27 21:25:27 +02:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
2017-09-15 09:56:26 -04:00
|
|
|
cmExecutionStatus& status) override;
|
2004-04-23 16:20:36 -04:00
|
|
|
|
2015-06-08 22:00:37 +02:00
|
|
|
private:
|
|
|
|
void StoreResult(const std::string& variable, const char* prop);
|
|
|
|
};
|
2004-04-23 16:20:36 -04:00
|
|
|
|
|
|
|
#endif
|