set(USER_EXECUTABLE "@USER_EXECUTABLE@")
set(USER_LIBRARY "@USER_LIBRARY@")
set(USER_INCLUDE_DIR "@USER_INCLUDE_DIR@")

if(CHECK_INTERPRETER)
  if(INVALID_ARTIFACTS MATCHES "INTERPRETER")
    set(Python3_EXECUTABLE "@USER_EXECUTABLE@")
  else()
    set(Python3_EXECUTABLE "@Python3_EXECUTABLE@")
  endif()
endif()
if(CHECK_LIBRARY)
  if(INVALID_ARTIFACTS MATCHES "LIBRARY")
    set(Python3_LIBRARY "@USER_LIBRARY@")
  else()
    set(Python3_LIBRARY "@_Python3_LIBRARY_RELEASE@")
    set(PYTHON_LIBRARY_RELEASE "@_Python3_LIBRARY_RELEASE@")
    set(PYTHON_LIBRARY_DEBUG "@_Python3_LIBRARY_DEBUG@")
    if(WIN32)
      set(PYTHON_RUNTIME_LIBRARY_RELEASE "@_Python3_RUNTIME_LIBRARY_RELEASE@")
      set(PYTHON_RUNTIME_LIBRARY_DEBUG "@_Python3_RUNTIME_LIBRARY_DEBUG@")
    endif()
  endif()
endif()
if(CHECK_INCLUDE)
  if(INVALID_ARTIFACTS MATCHES "INCLUDE")
    set(Python3_INCLUDE_DIR "@USER_INCLUDE_DIR@")
  else()
    set(Python3_INCLUDE_DIR "@Python3_INCLUDE_DIRS@")
  endif()
endif()
if(CHECK_SABI_LIBRARY)
  if(INVALID_ARTIFACTS MATCHES "SABI_LIBRARY")
    set(Python3_SABI_LIBRARY "@USER_LIBRARY@")
  else()
    set(Python3_SABI_LIBRARY "@_Python3_SABI_LIBRARY_RELEASE@")
    set(PYTHON_SABI_LIBRARY_RELEASE "@_Python3_SABI_LIBRARY_RELEASE@")
    set(PYTHON_SABI_LIBRARY_DEBUG "@_Python3_SABI_LIBRARY_DEBUG@")
    if(WIN32)
      set(PYTHON_RUNTIME_SABI_LIBRARY_RELEASE "@_Python3_RUNTIME_SABI_LIBRARY_RELEASE@")
      set(PYTHON_RUNTIME_SABI_LIBRARY_DEBUG "@_Python3_RUNTIME_SABI_LIBRARY_DEBUG@")
    endif()
  endif()
endif()
