Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2ae7855e authored by hhakim's avatar hhakim
Browse files

Minor change.

Add a cmake variable to check easily if the scalar type is complex at compile time in tests.
parent 256bf9a9
No related branches found
No related tags found
No related merge requests found
......@@ -190,11 +190,17 @@ if(MATIO_LIB_FILE AND MATIO_INC_DIR AND BUILD_READ_MAT_FILE AND NOT NOCPPTESTS)
foreach(TEST_FPP float double complex<float> complex<double>)
foreach(testin hierarchicalFactorization hierarchicalFactorizationFFT test_palm4MSA test_palm4MSAFFT faust_multiplication faust_matdense_conjugate GivensFGFT GivensFGFTParallel test_MatDiag)
if(${TEST_FPP} MATCHES complex AND ${testin} MATCHES GivensFGFT)
continue()
# GivensFGFT doesn't handle complex matrices
endif()
if(${TEST_FPP} MATCHES complex)
set(TEST_IS_COMPLEX 1)
if(${testin} MATCHES GivensFGFT)
continue()
endif()
# GivensFGFT doesn't handle complex matrices
else()
set(TEST_IS_COMPLEX 0)
endif()
string(REGEX REPLACE "<|>" "" TEST_FILE_CPP ${TEST_FPP})
set(TEST_CPP_NAME ${testin}_${TEST_FILE_CPP})
set(TEST_FILE_CPP ${TEST_CPP_NAME}.cpp)
message(STATUS ${TEST_FILE_CPP}) # copy CPU files cpp.in to the user's ./src/ directory in float et double precision
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment