Skip to content

Commit 33fce8e

Browse files
committed
Remove the setting of CMAKE_RUNTIME_OUTPUT_DIRECTORY
Use the current binary dir instead. Use `configure_file` to guarantee the project is reconfigured when these files change. Not in this commit, fixing the working directory and references of the tests Signed-off-by: Cristian Le <git@lecris.dev>
1 parent cc6bb58 commit 33fce8e

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

TESTING/traditional/CMakeLists.txt

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
add_subdirectory(LIN)
22
add_subdirectory(EIG)
33

4-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${SCALAPACK_BINARY_DIR}/TESTING)
5-
6-
file(COPY BLLT.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
7-
file(COPY BLU.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
8-
file(COPY BRD.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
9-
file(COPY EVC.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
10-
file(COPY HRD.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
11-
file(COPY INV.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
12-
file(COPY LLT.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
13-
file(COPY LS.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
14-
file(COPY LU.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
15-
file(COPY NEP.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
16-
file(COPY QR.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
17-
file(COPY SEP.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
18-
file(COPY SEPR.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
19-
file(COPY SVD.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
20-
file(COPY TRD.dat DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
4+
foreach(file_dat IN ITEMS
5+
BLLT.dat
6+
BLU.dat
7+
BRD.dat
8+
EVC.dat
9+
HRD.dat
10+
INV.dat
11+
LLT.dat
12+
LS.dat
13+
LU.dat
14+
NEP.dat
15+
QR.dat
16+
SEP.dat
17+
SEPR.dat
18+
SVD.dat
19+
TRD.dat
20+
)
21+
configure_file(${file_dat} ${file_dat} COPYONLY)
22+
endforeach()
2123

2224
add_test(xslu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xslu)
2325
add_test(xdlu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xdlu)

TESTING/traditional/EIG/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${SCALAPACK_BINARY_DIR}/TESTING)
2-
31
set (smatgen psmatgen.f pmatgeninc.f)
42
set (dmatgen pdmatgen.f pmatgeninc.f)
53
set (cmatgen pcmatgen.f pmatgeninc.f)

TESTING/traditional/LIN/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${SCALAPACK_BINARY_DIR}/TESTING)
2-
31
set (smatgen psmatgen.f pmatgeninc.f)
42
set (dmatgen pdmatgen.f pmatgeninc.f)
53
set (cmatgen pcmatgen.f pmatgeninc.f)

0 commit comments

Comments
 (0)