forked from qt-creator/qt-creator
CMakePM: Refactor CMakeLists|Cache.txt as constants
Change-Id: I7165fa1d219a0c59bc519a9af1cd194414c4311c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -53,7 +53,7 @@ bool CMakeListsNode::showInSimpleTree() const
|
||||
|
||||
std::optional<FilePath> CMakeListsNode::visibleAfterAddFileAction() const
|
||||
{
|
||||
return filePath().pathAppended("CMakeLists.txt");
|
||||
return filePath().pathAppended(Constants::CMAKE_LISTS_TXT);
|
||||
}
|
||||
|
||||
CMakeProjectNode::CMakeProjectNode(const FilePath &directory) :
|
||||
@@ -189,7 +189,7 @@ void CMakeTargetNode::setConfig(const CMakeConfig &config)
|
||||
|
||||
std::optional<FilePath> CMakeTargetNode::visibleAfterAddFileAction() const
|
||||
{
|
||||
return filePath().pathAppended("CMakeLists.txt");
|
||||
return filePath().pathAppended(Constants::CMAKE_LISTS_TXT);
|
||||
}
|
||||
|
||||
void CMakeTargetNode::build()
|
||||
|
||||
Reference in New Issue
Block a user