Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit c23daa3

Browse files
committed
Updated lua macros
1 parent 3ec13c5 commit c23daa3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cmake/lua.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ macro ( install_lua_executable _name _source )
5454
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_name}
5555
)
5656
# 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)
5858
else()
5959
# Add .lua suffix and install as is
6060
install ( PROGRAMS ${_source} DESTINATION ${INSTALL_BIN}
61-
RENAME ${_source_name}.lua )
61+
RENAME ${_source_name}.lua
62+
COMPONENT Runtime
63+
)
6264
endif()
6365
endmacro ()
6466

@@ -102,7 +104,9 @@ macro ( _lua_module_helper is_install _name )
102104

103105
if ( ${is_install} )
104106
install ( FILES ${_first_source} DESTINATION ${INSTALL_LMOD}/${_module_dir}
105-
RENAME ${_module_filename} )
107+
RENAME ${_module_filename}
108+
COMPONENT Runtime
109+
)
106110
endif ()
107111
else () # Lua C binary module
108112
enable_language ( C )
@@ -123,7 +127,7 @@ macro ( _lua_module_helper is_install _name )
123127
set_target_properties ( ${_target} PROPERTIES LIBRARY_OUTPUT_DIRECTORY
124128
"${_module_dir}" PREFIX "" OUTPUT_NAME "${_module_filenamebase}" )
125129
if ( ${is_install} )
126-
install ( TARGETS ${_target} DESTINATION ${INSTALL_CMOD}/${_module_dir})
130+
install ( TARGETS ${_target} DESTINATION ${INSTALL_CMOD}/${_module_dir} COMPONENT Runtime)
127131
endif ()
128132
endif ()
129133
endmacro ()

0 commit comments

Comments
 (0)