Re: [CMake] FindPostgreSQL.cmake won't work on ubuntu

2012-12-17 Thread Rolf Eike Beer
Ilia Choly wrote: > * Ubuntu 12.04 > * CMake 2.8.9 > * Postgresql 9.2.2 Maybe the usual multiarch breakage? http://cmake.org/Bug/view.php?id=13378 Eike -- signature.asc Description: This is a digitally signed message part. -- Powered by www.kitware.com Visit other Kitware open-source project

Re: [CMake] FindPostgreSQL.cmake won't work on ubuntu

2012-12-17 Thread Matthew Woehlke
On 2012-12-17 14:55, Ilia Choly wrote: I'm trying to get the `FindPostgreSQL` module to find `/usr/include/postgresql/libpq-fe.h`. This is the error I get: CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find PostgreSQL (missin

[CMake] FindPostgreSQL.cmake won't work on ubuntu

2012-12-17 Thread Ilia Choly
* Ubuntu 12.04 * CMake 2.8.9 * Postgresql 9.2.2 I'm trying to get the `FindPostgreSQL` module to find `/usr/include/postgresql/libpq-fe.h`. Here's what I have in my `CMakeLists.txt`: find_package(PostgreSQL REQUIRED) This is the error I get: CMake Error at /usr/share/cmake-2.8/Modu

Re: [CMake] Using gnu flex with cmake

2012-12-17 Thread Derek Cole
Thanks - that seemed to work. I was under the impression I could specify where I wanted the .c file to go with the 2nd argument. I had tried this way before, but i didnt notice I think I had a syntax error in my .l file causing the compile to not complete. Thanks -Derek On Mon, Dec 17, 2012 at 2

Re: [CMake] Using gnu flex with cmake

2012-12-17 Thread Eric Noulard
2012/12/17 Derek Cole > Replying to fix the subject > > On Mon, Dec 17, 2012 at 1:45 PM, Derek Cole wrote: > >> >>I am trying to figure out what I am doing wrong when trying to use >> just flex in a Cmake file to build a shared lib. >> >> i basically have the following >> >> find_package(FLE

Re: [CMake] Using gnu flex with cmake

2012-12-17 Thread Derek Cole
Replying to fix the subject On Mon, Dec 17, 2012 at 1:45 PM, Derek Cole wrote: > >I am trying to figure out what I am doing wrong when trying to use > just flex in a Cmake file to build a shared lib. > > i basically have the following > > find_package(FLEX) > FLEX_TARGET(Test ../src/test.l .

[CMake] Using gnu flux with cmake

2012-12-17 Thread Derek Cole
I am trying to figure out what I am doing wrong when trying to use just flex in a Cmake file to build a shared lib. i basically have the following find_package(FLEX) FLEX_TARGET(Test ../src/test.l ../src/test.c)set(SRC_FILES mysource.c ${FLEX_Test_OUTPUTS}) add_libary(testlib ${SRC_FILES}) target

Re: [CMake] How to use CMAKE_POLICY?

2012-12-17 Thread Alexander Neundorf
On Monday 17 December 2012, David Cole wrote: > I thought we wanted them to switch to the new behavior... Isn't that the > goal of emitting warnings from policy implementations...? ...but not as long as the project still wants to keep the old minimum required cmake version (or am I mixing things

Re: [CMake] How to use CMAKE_POLICY?

2012-12-17 Thread David Cole
I thought we wanted them to switch to the new behavior... Isn't that the goal of emitting warnings from policy implementations...? On Mon, Dec 17, 2012 at 11:45 AM, Alexander Neundorf < a.neundorf-w...@gmx.net> wrote: > On Monday 17 December 2012, David Cole wrote: > > If you need to set a poli

Re: [CMake] How to use CMAKE_POLICY?

2012-12-17 Thread Alexander Neundorf
On Monday 17 December 2012, David Cole wrote: > If you need to set a policy to OLD, then we have failed... > > Why do you need to set a policy to OLD? To get the old behaviour, and to silence warnings, which could lead developers to change the cmake code and switch to the NEW behaviour, I think.

Re: [CMake] How to use CMAKE_POLICY?

2012-12-17 Thread David Cole
If you need to set a policy to OLD, then we have failed... Why do you need to set a policy to OLD? How can we make it work so that you don't need to do that? On Mon, Dec 17, 2012 at 3:58 AM, Marcel Loose wrote: > Hi David, > > See my remarks inline. > > > On 15/12/12 16:47, David Cole wrot

Re: [CMake] Xcode Archiving on iOS and OSX

2012-12-17 Thread Jamie Hales
I've got a little further with this over the weekend. By doing a "Product->Build For->Archiving" before "Product->Archive" seems to build the xcode archives into the correct location, I'm not sure why this is the case. Regardless, that allows it to link correctly. The problem then is it by defau

Re: [CMake] How to use CMAKE_POLICY?

2012-12-17 Thread Marcel Loose
Hi David, See my remarks inline. On 15/12/12 16:47, David Cole wrote: On Sat, Dec 15, 2012 at 10:33 AM, Marcel Loose > wrote: Thanks, that seems to work. Is the idiom if(POLICY CMP) cmake_policy(PUSH) cmake_policy(SET CMP OLD