Merge topic 'mac_environ'

a90d478 [OSX] Fixed undefined symbol when linking CMakeLib into shared library
This commit is contained in:
David Cole 2012-04-25 14:00:22 -04:00 committed by CMake Topic Stage
commit fd1788294d
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ public:
private:
HANDLE handle_;
};
#elif defined(__APPLE__)
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#endif
bool cmSystemTools::s_RunCommandHideConsole = false;