Merge branch 'fix-find_dependency-EXACT' into release
This commit is contained in:
commit
7534967b65
|
@ -31,6 +31,9 @@ macro(find_dependency dep)
|
||||||
if (NOT ${dep}_FOUND)
|
if (NOT ${dep}_FOUND)
|
||||||
set(cmake_fd_version)
|
set(cmake_fd_version)
|
||||||
if (${ARGC} GREATER 1)
|
if (${ARGC} GREATER 1)
|
||||||
|
if (${ARGV1} STREQUAL EXACT)
|
||||||
|
message(FATAL_ERROR "Invalid arguments to find_dependency. EXACT may only be specified if a VERSION is specified")
|
||||||
|
endif()
|
||||||
set(cmake_fd_version ${ARGV1})
|
set(cmake_fd_version ${ARGV1})
|
||||||
endif()
|
endif()
|
||||||
set(cmake_fd_exact_arg)
|
set(cmake_fd_exact_arg)
|
||||||
|
@ -38,9 +41,6 @@ macro(find_dependency dep)
|
||||||
if (NOT ${ARGV2} STREQUAL EXACT)
|
if (NOT ${ARGV2} STREQUAL EXACT)
|
||||||
message(FATAL_ERROR "Invalid arguments to find_dependency")
|
message(FATAL_ERROR "Invalid arguments to find_dependency")
|
||||||
endif()
|
endif()
|
||||||
if (NOT ${cmake_fd_version})
|
|
||||||
message(FATAL_ERROR "Invalid arguments to find_dependency. EXACT may only be specified if a VERSION is specified")
|
|
||||||
endif()
|
|
||||||
set(cmake_fd_exact_arg EXACT)
|
set(cmake_fd_exact_arg EXACT)
|
||||||
endif()
|
endif()
|
||||||
if(${ARGC} GREATER 3)
|
if(${ARGC} GREATER 3)
|
||||||
|
|
Loading…
Reference in New Issue