> On Apr 26, 2019, at 8:16 PM, Stephen M. Butler <kg...@arrl.net> wrote:
> 
> On 4/26/19 4:04 PM, John Ralls wrote:
>> 
>>> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler <kg...@arrl.net> wrote:
>>> 
>>> Based on the following, have I run into a problem with googletest on
>>> Disco?  Additional Guidance sure appreciated.
>>> 
>> Just point GnuCash at the source directories with -DGTEST_ROOT and 
>> -DGMOCK_ROOT. It will take care of building them.
>> 
>> Regards,
>> John Ralls
>> 
> 
> found these two lines up front in the debian/rules file.
> 
>    export GMOCK_ROOT=$(CURDIR)/.build/__gtest/googlemock
>    export GTEST_ROOT=$(CURDIR)/.build/__gtest/googletestT
> 
> Changed them to be:
> 
>    export GMOCK_ROOT=/usr/src/googletest/googletest
>    export GTEST_ROOT=/usr/src/googletest/googlemock
> 
> and dpkg_buildpackage thru eggs all over the screen within a couple of
> seconds.  Now searching for how cmake is invoked.  Probably pick this up
> again Sunday evening. 

CMake doesn't read the environment except for CFLAGS, CXXFLAGS, and LDFLAGS so 
you have to explicitly set those on the cmake command line:
   cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/path/to/install -D 
GTEST_ROOT=/usr/src/googletest/googletest -D 
GMOCK_ROOT=/usr/src/googletest/googlemock /path/to/gnucash-source

Regards,
John Ralls

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to