Fix cmake file not to use CMAKE_SOURCE_DIR (#367)

Using CMAKE_SOURCE_DIR benchmark cannot be built as part of a project.
This change allows to add benchmark using add_subdirectory to a bigger
project.
This commit is contained in:
Daniel Varga 2017-04-10 17:43:05 +02:00 committed by Dominic Hamon
parent 9a5072d1bf
commit 312d9d0ac5
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ write_basic_package_version_file(
"${version_config}" VERSION ${GIT_VERSION} COMPATIBILITY SameMajorVersion
)
configure_file("${CMAKE_SOURCE_DIR}/cmake/Config.cmake.in" "${project_config}" @ONLY)
configure_file("${PROJECT_SOURCE_DIR}/cmake/Config.cmake.in" "${project_config}" @ONLY)
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
install(