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:
Родитель
6accefc3a4
Коммит
26b51ef30c
5
CHANGES
5
CHANGES
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче