googletest last fix

2 views
Skip to first unread message

Ulf Lorenz

unread,
Nov 11, 2013, 3:01:14 PM11/11/13
to libt...@googlegroups.com
Hi,

just to attack the next issue: googletest was making problems,
because when it is found, a relative path is set for GTEST_DIR, but if
it is automatically downloaded, an _absolute_ path was set. Attached is
a simple fix that essentially replaces the absolute path by a relative
one.


Ulf
googletest.diff

Juan Jose Garcia-Ripoll

unread,
Nov 25, 2013, 4:22:07 AM11/25/13
to Ulf Lorenz, libt...@googlegroups.com
I am afraid the patch does not work for me. It took me some time to realise the kind of problems you are experiencing arise from the fact that you build lib tensor from inside the libtensor directory, while I always build from some other directory, because I make many different builds. Indeed all the software I design normally is prepared to be configured and built from some other directory.

My feeling is that both paths should be absolute, not relative. The fact that "configure" makes ac_confdir relative is a bit unfortunate. Wouldn't there be another way to fix this?

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
http://juanjose.garciaripoll.googlepages.com

Ulf Lorenz

unread,
Nov 25, 2013, 10:16:39 AM11/25/13
to libt...@googlegroups.com
On Mon, 25 Nov 2013 10:22:07 +0100
Juan Jose Garcia-Ripoll <juanjose.g...@gmail.com> wrote:

> My feeling is that both paths should be absolute, not relative. The
> fact that "configure" makes ac_confdir relative is a bit unfortunate.
> Wouldn't there be another way to fix this?

There might be a way to get the absolute top level dir or so somewhere.
The patch was what I could produce after a bit of perusal of the
autotools documentation, which was rather silent on, e.g., ac_confdir.

I would have a deeper look into autotools, there is probably a fix
hidden somewhere .


Ulf

Ulf Lorenz

unread,
Nov 29, 2013, 5:04:17 PM11/29/13
to libt...@googlegroups.com
On Mon, 25 Nov 2013 10:22:07 +0100
Juan Jose Garcia-Ripoll <juanjose.g...@gmail.com> wrote:

> My feeling is that both paths should be absolute, not relative. The
> fact that "configure" makes ac_confdir relative is a bit unfortunate.
> Wouldn't there be another way to fix this?

Looking into the autoconf files suggested that there is a corresponding
absolute path as well. Patch attached.


Ulf
gtest_patch.txt

Juan Jose Garcia-Ripoll

unread,
Dec 4, 2013, 10:22:29 AM12/4/13
to Ulf Lorenz, libt...@googlegroups.com
It's now in.
Reply all
Reply to author
Forward
0 new messages