CMAKE_INSTALL_PREFIX : make: *** No rule to make target `install'. Stop.

699 views
Skip to first unread message

Witold Eryk Wolski

unread,
May 21, 2013, 10:29:37 AM5/21/13
to googletes...@googlegroups.com
Hi,

In order to use gtest I am supposed to set:  GTEST_ROOT

I run into the following problem when trying to build and install gtest using cmake (recommended according to the gest primer).

I am setting the CMAKE_INSTALL_PREFIX to the location where I want to have gtest installed (further GTEST_ROOT):.

than I run:
make
make install
make: *** No rule to make target `install'.  Stop.

make runs fine, the libs and binaries end up in the build directory (cmake out of source build).
So how do I install gtest?

best
Witold

Josh Kelley

unread,
May 21, 2013, 9:09:58 PM5/21/13
to Witold Eryk Wolski, Google C++ Testing Framework
Installing Google Test is not recommended or supported.

See http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog for more information.

--
Josh Kelley

Witold Eryk Wolski

unread,
May 23, 2013, 4:58:11 AM5/23/13
to googletes...@googlegroups.com, Witold Eryk Wolski
Yes, in the default OS locations...
Reply all
Reply to author
Forward
0 new messages