Opened 6 years ago

Last modified 4 years ago

#3190 new defect

--with-gtest-source versus --with-gtest

Reported by: jreed Owned by: UnAssigned
Priority: very low Milestone: Outstanding Tasks
Component: build system Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Core Feature Depending on Ticket:
Estimated Difficulty: 2 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

./configure probably shouldn't allow both gtest switches to be used at same time.
For example, --with-gtest=yes --with-gtest-source causes failure if don't have libgtest installed.

configure:17883: checking for gtest source
configure:17890: result: /usr/src/gtest
configure:17975: checking for gtest-config
configure:18008: result: no
configure:18021: WARNING: Unable to locate Google Test gtest-config.
configure:18047: checking Checking whether gtest tests need pthreads
configure:18068: g++ -o conftest -g -O2  -DOS_LINUX  -I/usr/include     -L/usr/lib conftest.cpp -ldl  -lgtest >&5
/usr/bin/ld: cannot find -lgtest

Workaround is simply setting --with-gtest=no at end of line or removing that switch.

Subtickets

Change History (4)

comment:1 Changed 6 years ago by muks

  • Estimated Difficulty changed from 0 to 2

comment:2 Changed 6 years ago by tomek

  • Milestone changed from New Tasks to Common Outstanding Tasks

Milestone New Tasks deleted

comment:3 Changed 4 years ago by tomek

  • Milestone changed from Common Outstanding Tasks to DHCP Outstanding Tasks

comment:4 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.