Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2021 21:50:33 +0100
From:      Tomasz CEDRO <>
To:        freebsd-ports <>,  FreeBSD Questions Mailing List <>
Subject:   CMAKE_PREFIX_PATH and /usr/local
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
Hello world :-)

I am porting LimeSuite to FreeBSD. Local patch fixes missing
"/usr/local/" path in CMakeLists.txt so the package now builds fine on
FreeBSD. On Linux probably most of the libraries and includes are
located in /usr/ do problem does not exist.

Upstream has some objections to accept this patch and considers
"/usr/local" a non-standard path [1]. But they propose to use
CMAKE_PREFIX_PATH to add "/usr/local". This however does not seem to
be supported in Ports (yet?).

The question is how to tell CMake about "/usr/local/include" without
source code modification? :-)

Below is the proposed patch:

> @@ -171,6 +171,11 @@ if (ENABLE_NEW_GAIN_BEHAVIOUR)

+    include_directories("/usr/local/include")

Any hints welcome :-)



Want to link to this message? Use this URL: <>