Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1baTCg-0007n4-Jy for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Aug 2016 19:42:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1baTCg-0002Lj-74 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Aug 2016 19:42:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1baTCe-0002KO-AI for pgsql-hackers@postgresql.org; Thu, 18 Aug 2016 19:42:12 +0000 Received: from cronos.madness.at ([2a02:16a8:dc41::10]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1baTCb-0002m6-Gb for pgsql-hackers@postgresql.org; Thu, 18 Aug 2016 19:42:11 +0000 Received: from gatekeeper.kaltenbrunner.cc ([83.215.243.9] helo=[192.168.8.22]) by cronos.madness.at with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1baTCW-0007gK-3Y; Thu, 18 Aug 2016 21:42:06 +0200 Subject: Re: WIP: About CMake v2 To: Christian Convey References: <4184974.kkvGJ5GoEX@dinodell> <1974943.sWDBYWy5U3@dinodell> <56096E15.3040602@gmx.net> <2319e612-6c78-4fd4-8ccb-e1fa1bc84c01@postgrespro.ru> <57B60263.4020501@kaltenbrunner.cc> <57B60792.3000307@kaltenbrunner.cc> Cc: Yury Zhuravlev , "pgsql-hackers@postgresql.org" From: Stefan Kaltenbrunner X-Enigmail-Draft-Status: N1110 Message-ID: <57B60F85.3020602@kaltenbrunner.cc> Date: Thu, 18 Aug 2016 21:41:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 08/18/2016 09:30 PM, Christian Convey wrote: > Hi Karl, > > I'll need to let Yury answer your original question regarding the best > way to report CMake-related bugs. > > Regarding the errors you're getting... I just looked at CMake's > online documentation regarding your "target_compile_definitions" > error. > > From what I can tell, the "target_compile_definition" property was > introduced in CMake 2.8.11. It sounds like your version of CMake is > just a little too old. Well - "too old" is a relative term - cmake 2.8.10 was released in only october 2012 and cmake 2.8.11 in may 2013 so it is not even 4 years old, the oldest currently supported (though for not much longer) postgresql release 9.1 was released in september 2011 and 9.2 was also released before october 2012. So while Cmake compat might only make it for v10, I dont think that we can depend on bleeding edge version like that for our buildtools... > > Regarding how one can know the required CMake version: My modus > operandi for CMake projects in general is (1) read the project's > how-to-build docs, and if that's not heplful, (2) hope that the > project's CMake files contain a "cmake_minimum_required" call to give > me a clear error message. I didn't find any such indication in Yuri's > files, although perhaps I missed it. > > > Yury: Would it make sense to add a call to "cmake_minimum_required" in > one or more of your CMakeLists.txt files? it would make sense nevertheless but I dont think that 2.8.11 is old enough - looking at the release information and the feature compatibily matrix it would seems we should more aim at something like 2.8.0 or 2.8.3... Stefan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers