diff options
author | Brad King <brad.king@kitware.com> | 2018-11-26 18:06:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-26 18:13:58 (GMT) |
commit | 0369362132b3deae30828299131647cc3754abeb (patch) | |
tree | daa1f2fa17b134b398ede90f34f390a39358cb95 /Tests | |
parent | 05a2ca7f87b9ae73f373e9967fde1ee5210e33af (diff) | |
download | CMake-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')
-rw-r--r-- | Tests/RunCMake/FindBoost/NoCXX-stderr.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/FindBoost/NoCXX.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/FindBoost/RunCMakeTest.cmake | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindBoost/NoCXX-stderr.txt b/Tests/RunCMake/FindBoost/NoCXX-stderr.txt new file mode 100644 index 0000000..8d98f9d --- /dev/null +++ b/Tests/RunCMake/FindBoost/NoCXX-stderr.txt @@ -0,0 +1 @@ +.* 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) diff --git a/Tests/RunCMake/FindBoost/RunCMakeTest.cmake b/Tests/RunCMake/FindBoost/RunCMakeTest.cmake index a153ae1..5d0577b 100644 --- a/Tests/RunCMake/FindBoost/RunCMakeTest.cmake +++ b/Tests/RunCMake/FindBoost/RunCMakeTest.cmake @@ -1,3 +1,4 @@ include(RunCMake) run_cmake(CMakePackage) +run_cmake(NoCXX) |