Skip to content
Snippets Groups Projects
Commit 09cec9a8 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-6: Fix CMake macro

parent cd7f3452
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -69,13 +69,13 @@ function(npm_install NPM_PACKAGE_SPECIFICATION)
get_filename_component(NPM_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}" REALPATH)
add_custom_target(copy_src_public ALL SOURCES "public" "src" COMMENT "Copying src and public directory into build directory")
add_custom_target(download_npm_dependencies ALL SOURCES "node_modules" "package-lock.json" DEPENDS copy_src_public COMMENT "Attempt downloading of required npm dependencies")
add_custom_target(download_npm_dependencies ALL SOURCES "node_modules" "package-lock.json" DEPENDS copy_src_public package_json COMMENT "Attempt downloading of required npm dependencies")
add_custom_target(packing_javascript_files ALL SOURCES build COMMENT "Attempt packing of javascript files")
add_custom_target(start_development_server_${PACKAGE_NAME} SOURCES "node_modules" "package-lock.json" COMMENT "Start start_development_server for ${PACKAGE_NAME}")
add_custom_command(
OUTPUT "package.json"
COMMAND ${CMAKE_COMMAND} -E copy_if_different
OUTPUT package_json
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${JSON_PACKAGE_SPECIFICATION} ${NPM_BINARY_DIR}/package.json
COMMENT "Copying package.json")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment