This repository was archived by the owner on Nov 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,13 @@ macro ( install_lua_executable _name _source )
54
54
DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /${_name}
55
55
)
56
56
# Install with run permissions
57
- install ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR} /${_name} DESTINATION ${INSTALL_BIN} )
57
+ install ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR} /${_name} DESTINATION ${INSTALL_BIN} COMPONENT Runtime )
58
58
else ()
59
59
# Add .lua suffix and install as is
60
60
install ( PROGRAMS ${_source} DESTINATION ${INSTALL_BIN}
61
- RENAME ${_source_name} .lua )
61
+ RENAME ${_source_name} .lua
62
+ COMPONENT Runtime
63
+ )
62
64
endif ()
63
65
endmacro ()
64
66
@@ -102,7 +104,9 @@ macro ( _lua_module_helper is_install _name )
102
104
103
105
if ( ${is_install} )
104
106
install ( FILES ${_first_source} DESTINATION ${INSTALL_LMOD} /${_module_dir}
105
- RENAME ${_module_filename} )
107
+ RENAME ${_module_filename}
108
+ COMPONENT Runtime
109
+ )
106
110
endif ()
107
111
else () # Lua C binary module
108
112
enable_language ( C )
@@ -123,7 +127,7 @@ macro ( _lua_module_helper is_install _name )
123
127
set_target_properties ( ${_target} PROPERTIES LIBRARY_OUTPUT_DIRECTORY
124
128
"${_module_dir} " PREFIX "" OUTPUT_NAME "${_module_filenamebase} " )
125
129
if ( ${is_install} )
126
- install ( TARGETS ${_target} DESTINATION ${INSTALL_CMOD} /${_module_dir} )
130
+ install ( TARGETS ${_target} DESTINATION ${INSTALL_CMOD} /${_module_dir} COMPONENT Runtime )
127
131
endif ()
128
132
endif ()
129
133
endmacro ()
You can’t perform that action at this time.
0 commit comments