[Bug 274834] devel/cmake-core: Fails to find cmake config files in /usr/local/lib/cmake

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 Oct 2023 17:27:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274834

            Bug ID: 274834
           Summary: devel/cmake-core: Fails to find cmake config files in
                    /usr/local/lib/cmake
           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
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

This script fails to find OpenCASCADE (cad/opencascade):

> cmake_minimum_required(VERSION 3.26)
> #set(CMAKE_PREFIX_PATH "/usr/local/lib")
> find_package(OpenCASCADE CONFIG REQUIRED)

The second line needs to be un-commented as a workaround, which shouldn't be
the case.

cmake obviously doesn't look for config files in /usr/local/lib/cmake.

I am not sure what is the correct search path in general, but it should either
include /usr/local/lib/cmake by default, or all packages that install config
files into /usr/local/lib/cmake should be changed to move them into the
searched location.

Otherwise this would cause problems for many ports.

cmake-core-3.26.1_3

-- 
You are receiving this mail because:
You are the assignee for the bug.