From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 878EE7B1DB for ; Wed, 25 Dec 2019 08:30:09 -0800 (PST) Received: by nautica.notk.org (Postfix, from userid 1001) id 9D1ADC009; Wed, 25 Dec 2019 17:30:07 +0100 (CET) Date: Wed, 25 Dec 2019 17:29:52 +0100 From: Dominique Martinet To: Adam Thompson Cc: edbrowse-dev@edbrowse.org Subject: Re: [edbrowse-dev] documentation respecting install prefix in cmake Message-ID: <20191225162952.GA2846@nautica> References: <20191225133640.GA74927@toaster> <20191225134715.GA11932@nautica> <20191225140551.GB93806@toaster> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191225140551.GB93806@toaster> User-Agent: Mutt/1.5.21 (2010-09-15) Adam Thompson wrote on Wed, Dec 25, 2019: > I think we do something like this for install prefix. I'd write the patch > but, as I said, my cmake knowledge is rather close to non-existent > unfortunately. I don't know much either, but it's always possible to test. It looks like CMAKE_INSTALL_PREFIX is always defined (at least on my version of cmake, 3.14.5), so I have submitted a patch in my cmake branch https://github.com/martinetd/edbrowse/tree/cmake Someone with an older version might want to check, but their documentation does not say anything about it having changed recently so it probably is ok: https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX.html They do talk about GNUInstallDirs though which has MANDIR and DOCDIR variables we could use. That might be a better fix... -- Dominique