summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindBoost/NoCXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-26 18:06:12 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-26 18:13:58 (GMT)
commit0369362132b3deae30828299131647cc3754abeb (patch)
treedaa1f2fa17b134b398ede90f34f390a39358cb95 /Tests/RunCMake/FindBoost/NoCXX.cmake
parent05a2ca7f87b9ae73f373e9967fde1ee5210e33af (diff)
downloadCMake-0369362132b3deae30828299131647cc3754abeb.zip
CMake-0369362132b3deae30828299131647cc3754abeb.tar.gz
CMake-0369362132b3deae30828299131647cc3754abeb.tar.bz2
FindBoost: Restore finding without CXX language enabled
Since commit v3.13.0~7^2 (FindBoost: Improve compiler prefix detection for GCC 5+ and clang 4+, 2018-11-07) we run the internal `_Boost_COMPILER_DUMPVERSION` macro on all UNIX platforms. Teach the macro to tolerate missing `CMAKE_CXX_COMPILER_VERSION`, which occurs when the CXX language is not enabled. Fixes: #18624
Diffstat (limited to 'Tests/RunCMake/FindBoost/NoCXX.cmake')
-rw-r--r--Tests/RunCMake/FindBoost/NoCXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindBoost/NoCXX.cmake b/Tests/RunCMake/FindBoost/NoCXX.cmake
new file mode 100644
index 0000000..04b9cac
--- /dev/null
+++ b/Tests/RunCMake/FindBoost/NoCXX.cmake
@@ -0,0 +1 @@
+find_package(Boost)