FS#60216 - [gtest] GOOGLETEST_VERSION is not set in gtest 1.8.1-2

Attached to Project: Community Packages
Opened by Søren Holm (sgh) - Thursday, 27 September 2018, 12:18 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 01 October 2018, 16:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
For some reason GOOGLETEST_VERSION is not set giving compile errors like this :

CMake Error at /usr/src/gtest/CMakeLists.txt:134 (set_target_properties):
set_target_properties called with incorrect number of arguments.


CMake Error at /usr/src/gtest/CMakeLists.txt:136 (set_target_properties):
set_target_properties called with incorrect number of arguments.

A workaround is to add this before including gtest in cmake
set(GOOGLETEST_VERSION "1.8.1") # For some reason this is necessary in gtest 1.8.1-2

Steps to reproduce:
Just try to "add_subdirectory( ${GTEST_PATH} gtest EXCLUDE_FROM_ALL)"
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 01 October 2018, 16:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.8.1-3

Loading...