diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 8b93f11..d5303fc 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1374,10 +1374,10 @@ void cmUnixMakefileGenerator::ComputeSystemInfo() { std::string env = "CXX=${CMAKE_CXX_COMPILER}"; m_Makefile->ExpandVariablesInString(env); - putenv(env.c_str()); + putenv(const_cast<char*>(env.c_str())); env = "CC=${CMAKE_C_COMPILER}"; m_Makefile->ExpandVariablesInString(env); - putenv(env.c_str()); + putenv(const_cast<char*>(env.c_str())); } // currently we run configure shell script here to determine the info |