Bug 278539

Summary: devel/cmake-core: The global property FIND_LIBRARY_USE_LIB64_PATHS evaluates to TRUE, when on FreeBSD lib64 isn't used
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: adridg
Priority: --- Flags: bugzilla: maintainer-feedback? (kde)
Version: Latest   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2024-04-23 03:14:18 UTC
This code prints TRUE:

> cmake_minimum_required(VERSION 2.8.12)
> project(x LANGUAGES C CXX)
> 
> get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
> message("LIB64=${LIB64}")

It should print FALSE because lib64 isn't used.
Comment 1 Adriaan de Groot freebsd_committer freebsd_triage 2024-06-01 11:02:25 UTC
Closing because 

- you could PR a patch against that adds two `set()` lines if you like 
- the hypothetical impact of searching for libraries in non-existent directories doesn't justify patching CMake