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

2023-10-31 Thread bugzilla-noreply
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: k...@freebsd.org
  Reporter: y...@freebsd.org
  Assignee: k...@freebsd.org
 Flags: maintainer-feedback?(k...@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.

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

2023-10-31 Thread bugzilla-noreply
Bugzilla Automation  has asked freebsd-kde (group)
 for maintainer-feedback:
Bug 274834: devel/cmake-core: Fails to find cmake config files in
/usr/local/lib/cmake
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274834



--- Description ---
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