Skip to content

Commit f55de5b

Browse files
committed
Solve bug of node port.
1 parent ffad6d0 commit f55de5b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/distributable/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ target_link_libraries(${target}
155155
INTERFACE
156156
)
157157

158+
#
159+
# Post build script
160+
#
161+
162+
# Register Library
163+
if(UNIX)
164+
add_custom_command(
165+
TARGET ${target}
166+
POST_BUILD
167+
COMMAND ldconfig ${CMAKE_BINARY_DIR}/distributable
168+
)
169+
endif()
170+
158171
#
159172
# Deployment
160173
#
@@ -166,3 +179,10 @@ install(TARGETS ${target}
166179
LIBRARY DESTINATION ${INSTALL_SHARED} COMPONENT runtime
167180
ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
168181
)
182+
183+
# Register Library
184+
if(UNIX)
185+
install(CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX}/${INSTALL_BIN})")
186+
install(CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX}/${INSTALL_SHARED})")
187+
install(CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB})")
188+
endif()

0 commit comments

Comments
 (0)