Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 00:26:16 +0200
From:      Dariusz Niespodziany <d.niespodziany@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   How to force cmake to omit default LINUX pathes on FreeBSD
Message-ID:  <CADgMGB-iGMDJfZqz0VjwqaEmjz2tcUrzRKoZUY%2BVoyCi_P29OQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi porters,
Does anyone know how to force cmake to look for executables in
/usr/local/bin first, not in /usr/bin?

*FIND_PROGRAM(FLEX_EXECUTABLE flex PATH /usr/local/bin DOC "path to the
flex executable" NO_DEFAULT_PATH)*

It works, but its not correct. Is there any more proper way?

FIND_PROGRAM uses "which" to get executable path. PATH variable is fetched,
but overriding $PATH is also not that proper.

Regards
niespodd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADgMGB-iGMDJfZqz0VjwqaEmjz2tcUrzRKoZUY%2BVoyCi_P29OQ>