Merge topic 'fix-find_dependency-macro'
5878c5d9
Always set version variable of find_dependency macro
This commit is contained in:
commit
461eaee53e
|
@ -29,9 +29,7 @@
|
||||||
|
|
||||||
macro(find_dependency dep)
|
macro(find_dependency dep)
|
||||||
if (NOT ${dep}_FOUND)
|
if (NOT ${dep}_FOUND)
|
||||||
if (${ARGV1})
|
set(version ${ARGV1})
|
||||||
set(version ${ARGV1})
|
|
||||||
endif()
|
|
||||||
set(exact_arg)
|
set(exact_arg)
|
||||||
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_EXACT)
|
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_EXACT)
|
||||||
set(exact_arg EXACT)
|
set(exact_arg EXACT)
|
||||||
|
|
Loading…
Reference in New Issue