mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
The Gentoo case added by commit 1673923c30 (FindBoost: Add support for
Boost 1.67 with Python version suffixes, 2018-03-18, v3.11.0~3^2) left
out the `.` version component separator and instead duplicated the RPM
case. Add the missing `.` now.
Fixes: #18743
18 lines
396 B
CMake
18 lines
396 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(TestFindBoostPython CXX)
|
|
include(CTest)
|
|
|
|
find_package(Boost OPTIONAL_COMPONENTS python27 python34 python35 python36 python37)
|
|
|
|
set(FAILTEST TRUE)
|
|
foreach (v IN ITEMS 27 34 35 36 37)
|
|
if (Boost_PYTHON${v}_FOUND)
|
|
set(FAILTEST FALSE)
|
|
break()
|
|
endif ()
|
|
endforeach ()
|
|
|
|
if (FAILTEST)
|
|
message(FATAL_ERROR "No Boost Python module found")
|
|
endif ()
|