From owner-freebsd-ports@FreeBSD.ORG Mon May 26 22:26:17 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7CE2C628 for ; Mon, 26 May 2014 22:26:17 +0000 (UTC) Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 498DE2159 for ; Mon, 26 May 2014 22:26:17 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id vb8so8580656obc.28 for ; Mon, 26 May 2014 15:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IShau4vWHzFH8MCt7b+BPanhAeQVHImg57RDtTOrYlU=; b=N+3NXzV6LjaTJLdhG9xCpeLOeVCjkDYW8/UEHCiD/UABrAA1ABufwUx8AF87LXMAHR jEhYPFkeqgegKhufwo5lSsdssvujEGqQznKyBu3grbVL9VM38mQTtjVPlBrOIp044Cn1 3QkdM40aqpuhDk5w8jbr6W/jbHGTeubVpDo0t9LpJhbeEkJdrBX+wpIB8Qaxwb0nKSQT y69YH96t7rI7+0+N/xmfwBF61yq4LBrxA+nN/yzMMjFtmRp6Dm+N+GbehkquEBIXhxxO NIyPp4mMbYSbCjMBR49q2xdjOJbpsvUQWWa4GdrSj2Vxnk2vTeR4XnsSqeobJeCAjNKH M0Yg== MIME-Version: 1.0 X-Received: by 10.182.29.8 with SMTP id f8mr28385090obh.43.1401143176548; Mon, 26 May 2014 15:26:16 -0700 (PDT) Received: by 10.76.122.231 with HTTP; Mon, 26 May 2014 15:26:16 -0700 (PDT) Date: Tue, 27 May 2014 00:26:16 +0200 Message-ID: Subject: How to force cmake to omit default LINUX pathes on FreeBSD From: Dariusz Niespodziany To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2014 22:26:17 -0000 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