Merge topic 'fix-find_dependency-macro'

5878c5d9 Always set version variable of find_dependency macro
This commit is contained in:
Brad King 2014-02-24 10:40:06 -05:00 committed by CMake Topic Stage
commit 461eaee53e
1 changed files with 1 additions and 3 deletions

View File

@ -29,9 +29,7 @@
macro(find_dependency dep)
if (NOT ${dep}_FOUND)
if (${ARGV1})
set(version ${ARGV1})
endif()
set(version ${ARGV1})
set(exact_arg)
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_EXACT)
set(exact_arg EXACT)