Update CMake condition for Emacs load/save helper

Make SPIRV_TOOLS_INSTALL_EMACS_HELPERS a CMake option.  Otherwise
I get a variable-defined-but-not-used error.
This commit is contained in:
David Neto 2016-09-12 16:48:05 -04:00
Родитель 6accefc3a4
Коммит 26b51ef30c
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,9 @@
Revision history for SPIRV-Tools
v2016.5-dev 2016-09-01
v2016.5-dev 2016-09-12
- Partial fixes:
#359: Add Emacs helper for automatically diassembling/assembling a SPIR-V
binary on file load/save.
v2016.4 2016-09-01
- Relicensed under Apache 2.0

Просмотреть файл

@ -35,7 +35,10 @@
# Note that symbol IDs are not preserved through a load/edit/save operation.
# This may change if the ability is added to spirv-as.
if (DEFINED SPIRV_TOOLS_INSTALL_EMACS_HELPERS)
option(SPIRV_TOOLS_INSTALL_EMACS_HELPERS
"Install Emacs helper to disassemble/assemble SPIR-V binaries on file load/save."
${SPIRV_TOOLS_INSTALL_EMACS_HELPERS})
if (${SPIRV_TOOLS_INSTALL_EMACS_HELPERS})
if(EXISTS /etc/emacs/site-start.d)
install(FILES 50spirv-tools.el DESTINATION /etc/emacs/site-start.d)
endif()