Cmake tests: Use correct 'if' statement to handle language strings

This commit is contained in:
Kornel Benko 2017-01-14 12:54:08 +01:00
parent 34943a4e5f
commit 40e6035d94

View File

@ -218,7 +218,7 @@ macro(loadTestList filename resList depth splitlangs)
list(REMOVE_DUPLICATES mylabels)
set(sublabel ${_newl})
else()
if (splitlangs)
if (${splitlangs} MATCHES "ON")
string(REGEX REPLACE "(\\/|\\||\\(|\\))" " " _vxx ${_newl})
string(REGEX MATCHALL " ([a-z][a-z](_[A-Z][A-Z])?) " _vx ${_vxx})
else()