summaryrefslogtreecommitdiff
path: root/Modules/Platform/Darwin-CXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Darwin-CXX.cmake')
-rw-r--r--Modules/Platform/Darwin-CXX.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-CXX.cmake b/Modules/Platform/Darwin-CXX.cmake
new file mode 100644
index 000000000..bf37f7903
--- /dev/null
+++ b/Modules/Platform/Darwin-CXX.cmake
@@ -0,0 +1,7 @@
+if(NOT CMAKE_CXX_COMPILER_NAMES)
+ set(CMAKE_CXX_COMPILER_NAMES c++)
+endif()
+
+# Exclude C++ compilers differing from C compiler only by case
+# because this platform may have a case-insensitive filesystem.
+set(CMAKE_CXX_COMPILER_EXCLUDE CC aCC xlC)