diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-03-17 19:23:01 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-03-17 19:23:01 (GMT) |
commit | b44ad7992a2a377cc48ba1b7f666d863dbac34f3 (patch) | |
tree | 2be4cacd05496165cb508509940a9b5d27f77eb6 /Source/cmake.h | |
parent | 736e80dbcafc4c46950688b915e0688f1b817862 (diff) | |
download | CMake-b44ad7992a2a377cc48ba1b7f666d863dbac34f3.zip CMake-b44ad7992a2a377cc48ba1b7f666d863dbac34f3.tar.gz CMake-b44ad7992a2a377cc48ba1b7f666d863dbac34f3.tar.bz2 |
cmake: Always prefer the last source directory provided
Fixes: #23334
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 9c795c5..3c2a36c 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -183,12 +183,6 @@ public: #endif std::string ReportCapabilities() const; - enum class HomeDirArgStyle - { - Plain, - Dash_S, - }; - /** * Set the home directory from `-S` or from a known location * that contains a CMakeLists.txt. Will generate warnings @@ -199,12 +193,11 @@ public: * | `dirA dirA` | dirA | N/A | * | `-S dirA -S dirA` | dirA | N/A | * | `-S dirA -S dirB` | dirB | Ignoring dirA | - * | `-S dirA dirB` | dirA | Ignoring dirB | + * | `-S dirA dirB` | dirB | Ignoring dirA | * | `dirA -S dirB` | dirB | Ignoring dirA | * | `dirA dirB` | dirB | Ignoring dirA | */ - void SetHomeDirectoryViaCommandLine(std::string const& path, - HomeDirArgStyle argStyle); + void SetHomeDirectoryViaCommandLine(std::string const& path); //@{ /** |