Skip to content

Commit 54f8e10

Browse files
committed
create temporary file in current binary dir
1 parent ea3724a commit 54f8e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/get_shortest_hash.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ string(
1313
# Seconds since epoch
1414
string(TIMESTAMP tmpdir_base "%s" UTC)
1515

16-
set(tmp "get_shortest_hash-${tmpdir_base}-${tmpdir_suffix}")
16+
set(tmp "${CMAKE_CURRENT_BINARY_DIR}/get_shortest_hash-${tmpdir_base}-${tmpdir_suffix}")
1717

1818
if(IS_DIRECTORY ${tmp})
1919
message(FATAL_ERROR "Test directory ${tmp} already exists")

0 commit comments

Comments
 (0)