summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-07 18:05:34 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-13 13:46:54 (GMT)
commitfd50a75fa01b4727a58350b494dbb23f6b0f103f (patch)
tree6d4321f57bb2460e7ec76b6d5d76761b485b072c /Source/cmSourceFile.h
parent521847809f4511352f01688227e8a22bc906f578 (diff)
downloadCMake-fd50a75fa01b4727a58350b494dbb23f6b0f103f.zip
CMake-fd50a75fa01b4727a58350b494dbb23f6b0f103f.tar.gz
CMake-fd50a75fa01b4727a58350b494dbb23f6b0f103f.tar.bz2
CMP0115: Require source file extensions to be explicit
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 39ea8e3..3196b3f 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -77,7 +77,8 @@ public:
* Resolves the full path to the file. Attempts to locate the file on disk
* and finalizes its location.
*/
- std::string const& ResolveFullPath(std::string* error = nullptr);
+ std::string const& ResolveFullPath(std::string* error = nullptr,
+ std::string* cmp0115Warning = nullptr);
/**
* The resolved full path to the file. The returned file name might be empty
@@ -138,7 +139,7 @@ private:
bool FindFullPathFailed = false;
bool IsGenerated = false;
- bool FindFullPath(std::string* error);
+ bool FindFullPath(std::string* error, std::string* cmp0115Warning);
void CheckExtension();
void CheckLanguage(std::string const& ext);