summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-21 12:25:19 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-21 12:25:23 (GMT)
commit6f666f4335c7f6b44fc4ccdc886590094fdfa16d (patch)
tree271909a4b396fa3733204acb4fe0b3316d48dbb2
parent5737bb37562007b571cd6b4f94bf4d2f2f038136 (diff)
parent3cf3bb71f403475ef0ac3fd02697b0a9d5f1ad03 (diff)
downloadCMake-6f666f4335c7f6b44fc4ccdc886590094fdfa16d.zip
CMake-6f666f4335c7f6b44fc4ccdc886590094fdfa16d.tar.gz
CMake-6f666f4335c7f6b44fc4ccdc886590094fdfa16d.tar.bz2
Merge topic 'freebsd-compiler-name'
3cf3bb71 Help: Add notes for topic 'freebsd-compiler-name' a0508dee FreeBSD prefers to call the C++ compiler c++ (just like Linux, Darwin, ..) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1293
-rw-r--r--Help/release/dev/freebsd-compiler-name.rst4
-rw-r--r--Modules/Platform/FreeBSD-Determine-CXX.cmake3
2 files changed, 7 insertions, 0 deletions
diff --git a/Help/release/dev/freebsd-compiler-name.rst b/Help/release/dev/freebsd-compiler-name.rst
new file mode 100644
index 0000000..ece7596
--- /dev/null
+++ b/Help/release/dev/freebsd-compiler-name.rst
@@ -0,0 +1,4 @@
+freebsd-compiler-name
+---------------------
+
+* On FreeBSD the C++ compiler named ``c++`` is now the preferred default.
diff --git a/Modules/Platform/FreeBSD-Determine-CXX.cmake b/Modules/Platform/FreeBSD-Determine-CXX.cmake
new file mode 100644
index 0000000..b594dae
--- /dev/null
+++ b/Modules/Platform/FreeBSD-Determine-CXX.cmake
@@ -0,0 +1,3 @@
+if(NOT CMAKE_CXX_COMPILER_NAMES)
+ set(CMAKE_CXX_COMPILER_NAMES c++)
+endif()