find_dependency: use correct version variable name

The code set cmake_fd_version, but used ${version}.
This commit is contained in:
Alex Merry 2014-02-26 11:41:35 +00:00 committed by Brad King
parent 2be6dbe420
commit 85d0f8de7e

View File

@ -50,7 +50,7 @@ macro(find_dependency dep)
_CMAKE_${dep}_TRANSITIVE_DEPENDENCY
)
find_package(${dep} ${version}
find_package(${dep} ${cmake_fd_version}
${cmake_fd_exact_arg}
${cmake_fd_quiet_arg}
${cmake_fd_required_arg}