Skip to content
Snippets Groups Projects
Commit 8db3b248 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #8256: Fixed two docker-related issues with the move of executables to <build-dir>/bin

parent 52772220
No related branches found
No related tags found
No related merge requests found
...@@ -139,8 +139,8 @@ foreach(_file pipeline.cfg.CEP4) ...@@ -139,8 +139,8 @@ foreach(_file pipeline.cfg.CEP4)
# when "all" is build. # when "all" is build.
add_custom_command( add_custom_command(
OUTPUT ${_dst} OUTPUT ${_dst}
COMMAND ${CMAKE_SOURCE_DIR}/Docker/docker-template -v ${CMAKE_BINARY_DIR}/Docker/versiondocker < ${_src} > ${_dst} COMMAND ${CMAKE_SOURCE_DIR}/Docker/docker-template -v ${CMAKE_BINARY_DIR}/bin/versiondocker < ${_src} > ${_dst}
DEPENDS ${CMAKE_SOURCE_DIR}/Docker/docker-template ${_src} ${CMAKE_BINARY_DIR}/Docker/versiondocker DEPENDS ${CMAKE_SOURCE_DIR}/Docker/docker-template ${_src} ${CMAKE_BINARY_DIR}/bin/versiondocker
) )
add_custom_target(${_file}_target ALL DEPENDS ${_dst}) add_custom_target(${_file}_target ALL DEPENDS ${_dst})
......
...@@ -36,14 +36,14 @@ lofar_add_sbin_scripts(docker-build-all.sh) ...@@ -36,14 +36,14 @@ lofar_add_sbin_scripts(docker-build-all.sh)
foreach(_dir ${DOCKER_TEMPLATE_DIRS}) foreach(_dir ${DOCKER_TEMPLATE_DIRS})
# _src -> _dst # _src -> _dst
set(_src ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/Dockerfile.tmpl) set(_src ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/Dockerfile.tmpl)
set(_dst ${CMAKE_CURRENT_BINARY_DIR}/${_dir}_Dockerfile) set(_dst ${CMAKE_BINARY_DIR}/bin/${_dir}_Dockerfile)
# add generating command, and (any) target to force the generation # add generating command, and (any) target to force the generation
# when "all" is build. # when "all" is build.
add_custom_command( add_custom_command(
OUTPUT ${_dst} OUTPUT ${_dst}
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/docker-template -v ${CMAKE_CURRENT_BINARY_DIR}/versiondocker < ${_src} > ${_dst} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/docker-template -v ${CMAKE_BINARY_DIR}/bin/versiondocker < ${_src} > ${_dst}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/docker-template ${_src} ${CMAKE_CURRENT_BINARY_DIR}/versiondocker DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/docker-template ${_src} ${CMAKE_BINARY_DIR}/bin/versiondocker
) )
add_custom_target(${_dir}_Dockerfile_target ALL DEPENDS ${_dst}) add_custom_target(${_dir}_Dockerfile_target ALL DEPENDS ${_dst})
......
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