Skip to content

Commit

Permalink
Resolved issue with verify_package where the wrong prefix was defined…
Browse files Browse the repository at this point in the history
… making all variables referenced null
  • Loading branch information
StevenAWhite committed Jul 20, 2018
1 parent cb81131 commit 0d562c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/cmake-common_logic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ set_property(GLOBAL PROPERTY AUTOGEN_SOURCE_GROUP "Generated")
#
####
function(verify_package package)
cmake_parse_arguments("_l_"
"REQUIRED"
cmake_parse_arguments(_l
REQUIRED
""
""
${ARGN})
find_package(${package} CONFIG ${_l_UNPARSE_ARGUMENTS} QUIET)
find_package(${package} CONFIG ${_l_UNPARSED_ARGUMENTS} QUIET)
if(NOT ${package}_FOUND)
find_package(${package} ${_l_UNPARSE_ARGUMENTS} QUIET)
find_package(${package} ${_l_UNPARSED_ARGUMENTS} QUIET)
if(NOT ${package}_FOUND)
message(WARNING "The following packages ${package} were not found."
"For native compilations setting CMAKE_PREFIX_PATH can solve this problem"
Expand Down

0 comments on commit 0d562c3

Please sign in to comment.