Skip to content

Commit 593ce9e

Browse files
authored
Make building individual tests depend on BUILD_SINGLE etc defines
1 parent 74e358b commit 593ce9e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test/CMakeLists.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ include_directories(${PROJECT_BINARY_DIR})
33

44
enable_language(Fortran)
55

6-
set(OpenBLAS_Tests
7-
sblat1 sblat2 sblat3
8-
dblat1 dblat2 dblat3
9-
cblat1 cblat2 cblat3
10-
zblat1 zblat2 zblat3)
6+
if (BUILD_SINGLE)
7+
list( APPEND OpenBLAS_Tests sblat1 sblat2 sblat3)
8+
endif()
9+
if (BUILD_DOUBLE)
10+
list (APPEND OpenBLAS_Tests dblat1 dblat2 dblat3)
11+
endif()
12+
if (BUILD_COMPLEX)
13+
list (APPEND OpenBLAS_Tests cblat1 cblat2 cblat3)
14+
endif()
15+
if (BUILD_COMPLEX16)
16+
list (APPEND OpenBLAS_Tests zblat1 zblat2 zblat3)
17+
endif()
1118

1219
foreach(test_bin ${OpenBLAS_Tests})
1320
add_executable(${test_bin} ${test_bin}.f)

0 commit comments

Comments
 (0)