Commit 2910794a authored by David Faure's avatar David Faure
Browse files

Improve error handling in KAccountsMacros

Had that lying around for a long time, forgot the exact details
parent 12213e15
......@@ -13,6 +13,9 @@ function(kaccounts_add_provider provider_in_file)
if(intltool_error)
message(FATAL_ERROR "error processing ${provider_in_file}: ${intltool_error}")
endif()
if (NOT ACCOUNTS_PROVIDERS_DIR)
message(FATAL_ERROR "ACCOUNTS_PROVIDERS_DIR not set, did you find_package (KAccounts REQUIRED) ?")
endif()
# The suffix must match whatever we set for $XDG_CURRENT_DESKTOP
install(FILES ${provider_file} DESTINATION ${ACCOUNTS_PROVIDERS_DIR}/kde/)
endfunction()
......@@ -32,6 +35,9 @@ function(kaccounts_add_service service_file_in)
if(intltool_error)
message(FATAL_ERROR "error processing ${service_file_in}: ${intltool_error}")
endif()
if (NOT ACCOUNTS_SERVICES_DIR)
message(FATAL_ERROR "ACCOUNTS_SERVICES_DIR not set, did you find_package (KAccounts REQUIRED) ?")
endif()
# The suffix must match whatever we set for $XDG_CURRENT_DESKTOP
install(FILES ${service_file} DESTINATION ${ACCOUNTS_SERVICES_DIR}/kde/)
endfunction()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment