Date: Sun, 28 Aug 2022 17:22:36 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266086] devel/cmake: cmake fails to find Java 11 Message-ID: <bug-266086-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266086 Bug ID: 266086 Summary: devel/cmake: cmake fails to find Java 11 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: yuri@freebsd.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org This CMakeLists.txt: > cmake_minimum_required(VERSION 3.15) > find_package(Java 11 REQUIRED COMPONENTS Runtime) fails to find Java 11: > CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardAr= gs.cmake:230 (message): > Could NOT find Java: Found unsuitable version "1.8.0.342", but required= is > at least "11" (found /usr/local/bin/java, found components: Runtime) > Call Stack (most recent call first): > /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 = (_FPHSA_FAILURE_MESSAGE) > /usr/local/share/cmake/Modules/FindJava.cmake:309 (find_package_handle_= standard_args) > CMakeLists.txt:4 (find_package) when several Java versions are installed: > $ pkg info | grep -i openjdk > bootstrap-openjdk17-17.0.1.12.1 Java Development Kit 17 > openjdk11-11.0.16+8.1 Java Development Kit 11 > openjdk17-17.0.4+8.1 Java Development Kit 17 > openjdk8-8.342.07.1 Java Development Kit 8 cmake-3.23.3 FreeBSD 13.1 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266086-7788>