Commit 54a06af8 authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

gold files

parent 77ce4f3b
......@@ -63,7 +63,7 @@ endfunction()
if(NOT DEFINED GOLD_SUFFIX)
if(DEFINED ENV{SLURM_JOB_PARTITION})
string(REGEX REPLACE "-.*" "" MACHINE_NAME $ENV{SLURM_JOB_PARTITION})
set(GOLD_SUFFIX MACHINE_NAME CACHE STRING "Gold file suffix")
set(GOLD_SUFFIX ${MACHINE_NAME} CACHE STRING "Gold file suffix")
message("Using gold time file suffix ${GOLD_SUFFIX}")
else()
set(GOLD_SUFFIX "" CACHE STRING "Gold file suffix")
......@@ -78,7 +78,7 @@ function(TARGET_GOLD_SOURCES TARGET PREFIX)
else()
message("Using gold check file ${PREFIX}.cpp")
target_sources(${TARGET} PUBLIC "${PREFIX}.cpp")
if(NOT GOLD_SUFFIX MATCHES "")
if(${GOLD_SUFFIX} MATCHES "[a-zA-Z0-9]+")
message("Using gold time file ${PREFIX}${GOLD_SUFFIX}.cpp")
target_sources(${TARGET} PUBLIC "${PREFIX}${GOLD_SUFFIX}.cpp")
endif()
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
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