Commit f426e055 authored by Niels Dekker's avatar Niels Dekker
Browse files

WIP: Hopefully fixed "fatal: Not a git repository (or any of the parent...

WIP: Hopefully fixed "fatal: Not a git repository (or any of the parent directories): .git" and "Invalid escape sequence \:" at https://stingray.researchlumc.nl/job/SuperElastix/job/SuperElastix/job/SELX-126-Make-compilation-logs-public/22/console
parent 93600d86
......@@ -22,20 +22,20 @@ set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/build")
set(CTEST_SITE "lkeb-selx01")
find_program(CTEST_GIT_COMMAND NAMES git)
find_package( Git REQUIRED )
execute_process (
COMMAND ${CTEST_GIT_COMMAND} rev-parse --short HEAD
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE SELX_GIT_COMMIT_SHA
)
execute_process (
COMMAND ${CTEST_GIT_COMMAND} name-rev --name-only HEAD
COMMAND ${GIT_EXECUTABLE} name-rev --name-only HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE SELX_GIT_BRANCH_NAME
)
set(CTEST_BUILD_NAME "${SELX_GIT_BRANCH_NAME};commit=SHA\:${SELX_GIT_COMMIT_SHA}")
set(CTEST_BUILD_NAME "${SELX_GIT_BRANCH_NAME};commit=SHA\\:${SELX_GIT_COMMIT_SHA}")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(CTEST_BUILD_CONFIGURATION Release)
......@@ -45,10 +45,10 @@ ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
set(CTEST_CHECKOUT_COMMAND "${CTEST_GIT_COMMAND} clone https://github.com/SuperElastix/SuperElastix.git ${CTEST_SOURCE_DIRECTORY}")
set(CTEST_CHECKOUT_COMMAND "${GIT_EXECUTABLE} clone https://github.com/SuperElastix/SuperElastix.git ${CTEST_SOURCE_DIRECTORY}")
endif()
set(CTEST_UPDATE_COMMAND "${CTEST_GIT_COMMAND}")
set(CTEST_UPDATE_COMMAND "${GIT_EXECUTABLE}")
set(CTEST_CONFIGURE_COMMAND "${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}")
set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} -DWITH_TESTING:BOOL=ON ${CTEST_BUILD_OPTIONS}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment