View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014151CMakeModulespublic2013-05-16 16:562016-06-10 14:31
ReporterMiłosz Kosobucki 
Assigned ToPhilip Lowman 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014151: FindGTest module should try to find sources in addition to binaries
DescriptionIt would be nice, if FindGTest module could find directory with sources of Google Test Framework.

FAQ on GTest website clearly states, that GTest should not be compiled system wide, and that's what CMake currently assumes. Instead, GTest should be statically compiled to each executable to make sure that the compiler flags of GTest and tested executable are the same (http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog [^])

When found, there could be some GTEST_SOURCES_DIRECTORY which then could be added with ADD_SUBDIRECTORY and compiled along the project as per FAQ suggestion
TagsNo tags attached.
Attached Filespatch file icon 0001-FindGTest-source-lookup-added.patch [^] (2,630 bytes) 2014-02-26 07:18 [Show Content]
patch file icon 0001-FindGTest-source-lookup-added-v2.patch [^] (2,699 bytes) 2014-02-26 08:22 [Show Content]

 Relationships

  Notes
(0033080)
Miłosz Kosobucki (reporter)
2013-05-16 16:58

Forgot to add, that on ubuntu, when GTest is installed (libgtest-dev) it goes to /usr/src/gtest
(0042282)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-05-16 16:56 Miłosz Kosobucki New Issue
2013-05-16 16:58 Miłosz Kosobucki Note Added: 0033080
2013-05-17 08:13 Brad King Assigned To => Philip Lowman
2013-05-17 08:13 Brad King Status new => assigned
2014-02-26 07:18 Nikolay Orliuk File Added: 0001-FindGTest-source-lookup-added.patch
2014-02-26 08:22 Nikolay Orliuk File Added: 0001-FindGTest-source-lookup-added-v2.patch
2014-02-26 08:25 Stephen Kelly Relationship added related to 0014503
2014-02-26 08:31 Stephen Kelly Relationship deleted related to 0014503
2016-06-10 14:28 Kitware Robot Note Added: 0042282
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team