[cmake-developers] [CMake 0014151]: FindGTest module should try to find sources in addition to binaries
Mantis Bug Tracker
mantis at public.kitware.com
Thu May 16 16:56:41 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14151
======================================================================
Reported By: Miłosz Kosobucki
Assigned To:
======================================================================
Project: CMake
Issue ID: 14151
Category: Modules
Reproducibility: always
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-05-16 16:56 EDT
Last Modified: 2013-05-16 16:56 EDT
======================================================================
Summary: FindGTest module should try to find sources in
addition to binaries
Description:
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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-05-16 16:56 Miłosz KosobuckiNew Issue
======================================================================
More information about the cmake-developers
mailing list