summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorHyper Nova Sun <hypernovasun@icloud.com>2022-04-08 20:22:08 (GMT)
committerHyper Nova Sun <hypernovasun@icloud.com>2022-04-11 21:10:29 (GMT)
commit41ba35a42b177db14358390e50857eb2554a3873 (patch)
tree0f758fe4a2a5cb67a0f7c82b0521027b129da41b /Source/cmTarget.h
parent7fc248bde34c529c6f1312a56c7e82303238b9c1 (diff)
downloadCMake-41ba35a42b177db14358390e50857eb2554a3873.zip
CMake-41ba35a42b177db14358390e50857eb2554a3873.tar.gz
CMake-41ba35a42b177db14358390e50857eb2554a3873.tar.bz2
cmTarget: Add `HasKnownObjectFileLocation()` shorthand
Allow `cmGlobalGenerator`s to decide `HasKnownObjectFileLocation()` per given `cmTarget` - `cmGlobalGenerator::HasKnownObjectFileLocation()` now takes an optional `cmGeneratorTarget` - `cmTarget::HasKnownObjectFileLocation()` added as a shorthand
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 0cdd2fc..edb49be 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -220,6 +220,8 @@ public:
//! Return whether this target is a GUI executable on Android.
bool IsAndroidGuiExecutable() const;
+ bool HasKnownObjectFileLocation(std::string* reason = nullptr) const;
+
//! Get a backtrace from the creation of the target.
cmListFileBacktrace const& GetBacktrace() const;