On 6 December 2012 21:28, Philipp Kraus <[email protected]> wrote:
> Am 06.12.2012 um 21:58 schrieb Mateusz Loskot:
>> On 6 December 2012 16:06, Philipp Kraus <[email protected]> wrote:
>>>
>>> Why don't you use on the include and the library the path value? At the
>>> moment it is different. IMHO should be on both flags the path value or it
>>> should be the full path to the files.
>>
>> This is how CMake handles these paths.
>> It is not imposed by SOCI configuration.
>> So, you may want to find out asking CMake folks.
>>
>> In fact, despite I knew how it works, I wasn't sure about the rationale 
>> myself
>> and I asked on CMake mailing list. Here [1] is the answer I received:
>
> You use also eg on POSTGRESQL_INCLUDE_DIR a cmake String type and I push on 
> this the path of the include dir.
> Why can't you do this equal on the library flag?

Please, re-read my response which answers this question.

> The library for postgres is named libpg.dylib / libpg.so / pg.dll.

No, it may be named anything, including this_is_my_custom_built_pg.lib.

> You can setup this in the cmake build script equal to the include dir. I 
> think it is more consistent to use only pathes or only files.

Discussion about that is out of scope of this list.
Please, address the CMake list with questions about how CMake works.

> IMHO it is consistent if I put to the include flag the <path to 
> postgres>/libpg-fe.h or a path to the library dir.
> [...]

You shouldn't expect consistency from two different tools, compiler
(preprocessor) and linker.
The former is implemented according to C/C++ standards.
The latter is platform-specific tool for archiving binary libraries.
Again, your questions with referece to compiler/linker has been
answered on the CMake list.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to