Skip to content

Commit

Permalink
CREATE_PROJECT: fixed DeepCode warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Oct 19, 2020
1 parent 0af6677 commit a7654b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/create_project/cmake.cpp
Expand Up @@ -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"
Expand Down

0 comments on commit a7654b4

Please sign in to comment.