Skip to content

Commit 472337d

Browse files
Stefan BuschmannJan Ole Vollmer
authored andcommitted
Remove install directives in googletest project
1 parent 87044f6 commit 472337d

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

source/tests/googletest/googletest/CMakeLists.txt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,26 @@ endif()
112112
########################################################################
113113
#
114114
# Install rules
115-
if(INSTALL_GTEST)
116-
install(TARGETS gtest gtest_main
117-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
118-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
119-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
120-
install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest
121-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
122-
123-
# configure and install pkgconfig files
124-
configure_file(
125-
cmake/gtest.pc.in
126-
"${CMAKE_BINARY_DIR}/gtest.pc"
127-
@ONLY)
128-
configure_file(
129-
cmake/gtest_main.pc.in
130-
"${CMAKE_BINARY_DIR}/gtest_main.pc"
131-
@ONLY)
132-
install(FILES "${CMAKE_BINARY_DIR}/gtest.pc" "${CMAKE_BINARY_DIR}/gtest_main.pc"
133-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
134-
endif()
115+
# if(INSTALL_GTEST)
116+
# install(TARGETS gtest gtest_main
117+
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
118+
# ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
119+
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
120+
# install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest
121+
# DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
122+
123+
# # configure and install pkgconfig files
124+
# configure_file(
125+
# cmake/gtest.pc.in
126+
# "${CMAKE_BINARY_DIR}/gtest.pc"
127+
# @ONLY)
128+
# configure_file(
129+
# cmake/gtest_main.pc.in
130+
# "${CMAKE_BINARY_DIR}/gtest_main.pc"
131+
# @ONLY)
132+
# install(FILES "${CMAKE_BINARY_DIR}/gtest.pc" "${CMAKE_BINARY_DIR}/gtest_main.pc"
133+
# DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
134+
# endif()
135135

136136
########################################################################
137137
#

0 commit comments

Comments
 (0)