From nobody Wed Sep 7 18:25:11 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MN9fJ1bWqz4bpd8 for ; Wed, 7 Sep 2022 18:25:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MN9fH6z3mz3DrY for ; Wed, 7 Sep 2022 18:25:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MN9fH5x0pzcgY for ; Wed, 7 Sep 2022 18:25:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 287IPBkO044835 for ; Wed, 7 Sep 2022 18:25:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 287IPBtu044834 for ports-bugs@FreeBSD.org; Wed, 7 Sep 2022 18:25:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266279] devel/cmake: cmake fails to find *.cmake files in /usr/local/lib/cmake Date: Wed, 07 Sep 2022 18:25:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662575112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/DQ4r0gZ6SdjFyXzRQNXkqs18It+nbBFgpfSD9BUbNU=; b=DeDSP2tkIsSTJQOc2hir5yHs4rhqRoWfAnVH7ZYkeYPSYoiZHZf5sPp9UxYEuwadnDBsXu gODOd456NVUjCDEiMAl7jr8Kd7GrEO3CqcA2g8R7q8Ncg9TtKecE47jEA5RWbBsuB7Ci8j 6NG60Suh/O3BL3kcCDu/KxCc8Naunp01VefrqPb47FBRjA/GROGkzvbBH6Usl+Z62La3nr mjwbXyj8uaqW/wASTt92AK1Ae7KcH3dB3hW1zpz05fs81NzynD+D9oT/2IkYEy5EiRLSo0 Euj1Lh0wxks7b8PwC1Q0yB91NPzrDcXHsEhJ1IkyKaKJxhxlu5o/fsbwyfMxXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662575112; a=rsa-sha256; cv=none; b=sGvFVqZC91ght4htkATxivR3hkOW82IKOWq/ERe9ls97I+vSLstFhe2aVTBMkhelSsvVKf VVt8JQ8pPna1a9M5fy47TTjGdL+eeqljikzv7PDdTdsyAL9moA/y+/Z3Ct61qAiCBgw0rs D6rqRKQLbO6zXDXsyDWabpQJv8Gdi0jbPCRnRbeD1tmmo260XA2raP2dAFneTu0xloxI5d d5cqwbqiuGqXhVOfn8C9pp8yK7JahZy+Qj2Z376ER79KuTpAFp39UeDyo37NhvNsyS2ex5 cLKtqWKrbbbf4aQqKs7HrociTQ4IghZ24Aok0ftiAGT+yVwI/p3Up/iNP9P5nw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266279 Bug ID: 266279 Summary: devel/cmake: cmake fails to find *.cmake 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: ports-bugs@FreeBSD.org Reporter: yuri@freebsd.org This CMakeLists.txt file: > cmake_minimum_required(VERSION 3.12) > find_package(OpenCASCADE REQUIRED) fails to find OpenCASCADE: > $ cmake -DCMAKE_MODULE_PATH=3D/usr/local . > ...skipped... > CMake Error at CMakeLists.txt:10 (find_package): > By not providing "FindOpenCASCADE.cmake" in CMAKE_MODULE_PATH this proj= ect > has asked CMake to find a package configuration file provided by > "OpenCASCADE", but CMake did not find one. >=20 > Could not find a package configuration file provided by "OpenCASCADE" w= ith > any of the following names: >=20 > OpenCASCADEConfig.cmake > opencascade-config.cmake >=20 > Add the installation prefix of "OpenCASCADE" to CMAKE_PREFIX_PATH or set > "OpenCASCADE_DIR" to a directory containing one of the above files. If > "OpenCASCADE" provides a separate development package or SDK, be sure it > has been installed. opencascade-7.6.0_6 does install the file /usr/local/lib/cmake/OpenCASCADEConfig.cmake, I am not sure if -DCMAKE_MODULE_PATH=3D/usr/local is required, it probably = isn't. There are at least 2 other ports that suffer from the same problem: science/axom and science/serac - they also install *.cmake files into lib/cmake. Why aren't these projects discovered by cmake? Is it wrong to place *.cmake files into lib/cmake? Should cmake be altered to look in lib/cmake? --=20 You are receiving this mail because: You are the assignee for the bug.=