Commit a9f72bd1 authored by Milan Crha's avatar Milan Crha

Bug 781645 - Skip GSettings schema compile and icon cache update when DESTDIR is set

parent 49f4ce5b
......@@ -238,9 +238,11 @@ macro(add_gsettings_schemas _target _schema0)
if(_install_code)
# Compile gsettings schemas and ensure that all of them are in the place.
install(CODE
"execute_process(${_install_code}
COMMAND ${CMAKE_COMMAND} -E chdir . \"${GLIB_COMPILE_SCHEMAS}\" \"${GSETTINGS_SCHEMAS_DIR}\"
)")
"if(\"\$ENV{DESTDIR}\" STREQUAL \"\")
execute_process(${_install_code}
COMMAND ${CMAKE_COMMAND} -E chdir . \"${GLIB_COMPILE_SCHEMAS}\" \"${GSETTINGS_SCHEMAS_DIR}\"
)
endif(\"\$ENV{DESTDIR}\" STREQUAL \"\")")
endif(_install_code)
endmacro(add_gsettings_schemas)
......
......@@ -60,9 +60,11 @@ macro(add_icon_cache_files _destdir _fileslistvar)
if(GTK_UPDATE_ICON_CACHE)
install(CODE
"execute_process(${_install_code}
COMMAND ${CMAKE_COMMAND} -E chdir . ${_update_icon_cache_cmd}
)")
"if(\"\$ENV{DESTDIR}\" STREQUAL \"\")
execute_process(${_install_code}
COMMAND ${CMAKE_COMMAND} -E chdir . ${_update_icon_cache_cmd}
)
endif(\"\$ENV{DESTDIR}\" STREQUAL \"\")")
endif(GTK_UPDATE_ICON_CACHE)
endmacro(add_icon_cache_files)
......
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