MantisBT - CMake
View Issue Details
0014151CMakeModulespublic2013-05-16 16:562016-06-10 14:31
Miłosz Kosobucki 
Philip Lowman 
normalfeaturealways
closedmoved 
CMake 2.8.10.2 
 
0014151: FindGTest module should try to find sources in addition to binaries
It 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
No tags attached.
patch 0001-FindGTest-source-lookup-added.patch (2,630) 2014-02-26 07:18
https://public.kitware.com/Bug/file/5081/0001-FindGTest-source-lookup-added.patch
patch 0001-FindGTest-source-lookup-added-v2.patch (2,699) 2014-02-26 08:22
https://public.kitware.com/Bug/file/5083/0001-FindGTest-source-lookup-added-v2.patch
Issue History
2013-05-16 16:56Miłosz KosobuckiNew Issue
2013-05-16 16:58Miłosz KosobuckiNote Added: 0033080
2013-05-17 08:13Brad KingAssigned To => Philip Lowman
2013-05-17 08:13Brad KingStatusnew => assigned
2014-02-26 07:18Nikolay OrliukFile Added: 0001-FindGTest-source-lookup-added.patch
2014-02-26 08:22Nikolay OrliukFile Added: 0001-FindGTest-source-lookup-added-v2.patch
2014-02-26 08:25Stephen KellyRelationship addedrelated to 0014503
2014-02-26 08:31Stephen KellyRelationship deletedrelated to 0014503
2016-06-10 14:28Kitware RobotNote Added: 0042282
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033080)
Miłosz Kosobucki   
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   
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.