Better handling of find_package_handle_standard_args().
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user