Skip to content

Commit

Permalink
Solve bug of node port.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Nov 8, 2019
1 parent ffad6d0 commit f55de5b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions source/distributable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ target_link_libraries(${target}
INTERFACE
)

#
# Post build script
#

# Register Library
if(UNIX)
add_custom_command(
TARGET ${target}
POST_BUILD
COMMAND ldconfig ${CMAKE_BINARY_DIR}/distributable
)
endif()

#
# Deployment
#
Expand All @@ -166,3 +179,10 @@ install(TARGETS ${target}
LIBRARY DESTINATION ${INSTALL_SHARED} COMPONENT runtime
ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
)

# Register Library
if(UNIX)
install(CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX}/${INSTALL_BIN})")
install(CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX}/${INSTALL_SHARED})")
install(CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB})")
endif()

0 comments on commit f55de5b

Please sign in to comment.