Commit 312d9d0a by Daniel Varga Committed by Dominic Hamon

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.
parent 9a5072d1
...@@ -49,7 +49,7 @@ write_basic_package_version_file( ...@@ -49,7 +49,7 @@ write_basic_package_version_file(
"${version_config}" VERSION ${GIT_VERSION} COMPATIBILITY SameMajorVersion "${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 target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
install( install(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment