diff --git a/source/loaders/node_loader/bootstrap/CMakeLists.txt b/source/loaders/node_loader/bootstrap/CMakeLists.txt index 7fce3a33f..bf335bdaa 100644 --- a/source/loaders/node_loader/bootstrap/CMakeLists.txt +++ b/source/loaders/node_loader/bootstrap/CMakeLists.txt @@ -38,6 +38,12 @@ if(NOT OPTION_BUILD_GUIX) ) add_dependencies(${target} ${target}-depends) + + install(DIRECTORY + ${CMAKE_CURRENT_BINARY_DIR}/node_modules + DESTINATION ${INSTALL_LIB} + COMPONENT runtime + ) endif() # @@ -60,9 +66,3 @@ install(FILES DESTINATION ${INSTALL_LIB} COMPONENT runtime ) - -install(DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR}/node_modules - DESTINATION ${INSTALL_LIB} - COMPONENT runtime -)