Better handling of find_package_handle_standard_args().

This commit is contained in:
Ryan Curtin
2017-04-07 15:56:30 -04:00
parent 1907131194
commit 80f4791c79
+1 -1
View File
@@ -21,7 +21,7 @@ function(find_python_module module)
endif ()
endif ()
find_package_handle_standard_args(PY_${module} DEFAULT_MSG PY_${module_upper})
if (NOT PY_${module}_FOUND AND ${module}_FIND_REQUIRED)
if (NOT PY_${module_upper}_FOUND AND ${module_upper}_FIND_REQUIRED)
message(FATAL_ERROR "Could not find Python module ${module}!")
endif ()
endfunction ()