Skip to content

Commit 009f7d2

Browse files
Incorporating feedback from the PR
1 parent 262309e commit 009f7d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,12 @@ else()
195195
endif()
196196
endif()
197197

198+
if (NOT DEFINED CMAKE_INSTALL_PYTOOLSDIR)
199+
set(CMAKE_INSTALL_PYTOOLSDIR "${CMAKE_INSTALL_DATADIR}/googlebenchmark/tools" CACHE PATH "")
200+
endif()
201+
198202
if (BENCHMARK_ENABLE_INSTALL AND BENCHMARK_INSTALL_TOOLS)
199203
install(
200204
DIRECTORY "${PROJECT_SOURCE_DIR}/tools/"
201-
DESTINATION ${CMAKE_INSTALL_PREFIX}/tools)
205+
DESTINATION ${CMAKE_INSTALL_PYTOOLSDIR})
202206
endif()

0 commit comments

Comments
 (0)