summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-04-25 18:00:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-04-25 18:00:22 (GMT)
commitfd1788294df63f3e5483c952c7dd709b41efee07 (patch)
tree2f3f60bf41767fd88a7c62019370e20dde6d5497 /Source/cmSystemTools.cxx
parent5d15430fb99a243f811d77ec47ea648e5508a0e4 (diff)
parenta90d47890ffa4b029d40f6884d9bd6603297322b (diff)
downloadCMake-fd1788294df63f3e5483c952c7dd709b41efee07.zip
CMake-fd1788294df63f3e5483c952c7dd709b41efee07.tar.gz
CMake-fd1788294df63f3e5483c952c7dd709b41efee07.tar.bz2
Merge topic 'mac_environ'
a90d478 [OSX] Fixed undefined symbol when linking CMakeLib into shared library
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 1376a48..25975e0 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -104,6 +104,9 @@ public:
private:
HANDLE handle_;
};
+#elif defined(__APPLE__)
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
#endif
bool cmSystemTools::s_RunCommandHideConsole = false;