diff options
author | Carsten Rudolph <18394207+crud89@users.noreply.github.com> | 2022-01-21 16:43:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-22 11:35:38 (GMT) |
commit | 193b8fca52b5665387dbc7f3199981d9e6cd4b79 (patch) | |
tree | e3a5d14692f37645b9b7a03fc240dd0f25bace48 /Source/cmBuildOptions.h | |
parent | 6a1010349355354e27015a004f5620b77993b91c (diff) | |
download | CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.zip CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.tar.gz CMake-193b8fca52b5665387dbc7f3199981d9e6cd4b79.tar.bz2 |
cmBuildOptions: Split build arguments into separate object.
Diffstat (limited to 'Source/cmBuildOptions.h')
-rw-r--r-- | Source/cmBuildOptions.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/cmBuildOptions.h b/Source/cmBuildOptions.h new file mode 100644 index 0000000..ed26703 --- /dev/null +++ b/Source/cmBuildOptions.h @@ -0,0 +1,21 @@ +/* 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 + +struct cmBuildOptions +{ +public: + cmBuildOptions() noexcept = default; + explicit cmBuildOptions(bool clean, bool fast) noexcept + : Clean(clean) + , Fast(fast) + { + } + explicit cmBuildOptions(const cmBuildOptions&) noexcept = default; + cmBuildOptions& operator=(const cmBuildOptions&) noexcept = default; + + bool Clean = false; + bool Fast = false; +}; |