CREATE_PROJECT: fixed DeepCode warning
This commit is contained in:
parent
332c826b4b
commit
813b497955
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ const CMakeProvider::Library *CMakeProvider::getLibraryFromFeature(const char *f
|
|||
void CMakeProvider::createWorkspace(const BuildSetup &setup) {
|
||||
std::string filename = setup.outputDir + "/CMakeLists.txt";
|
||||
std::ofstream workspace(filename.c_str());
|
||||
if (!workspace)
|
||||
if (!workspace || !workspace.is_open())
|
||||
error("Could not open \"" + filename + "\" for writing");
|
||||
|
||||
workspace << "cmake_minimum_required(VERSION 3.2)\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue