summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-03-17 19:23:01 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2022-03-17 19:23:01 (GMT)
commitb44ad7992a2a377cc48ba1b7f666d863dbac34f3 (patch)
tree2be4cacd05496165cb508509940a9b5d27f77eb6 /Source/cmake.h
parent736e80dbcafc4c46950688b915e0688f1b817862 (diff)
downloadCMake-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.h11
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);
//@{
/**