mirror of https://github.com/google/benchmark.git
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:
parent
9a5072d1bf
commit
312d9d0ac5
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue