mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
CREATE_PROJECT: fixed DeepCode warning
This commit is contained in:
parent
332c826b4b
commit
813b497955
@ -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…
Reference in New Issue
Block a user