Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2023 17:27:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 274834] devel/cmake-core: Fails to find cmake config files in /usr/local/lib/cmake
Message-ID:  <bug-274834-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274834

            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 eit=
her
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

--=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-274834-7788>