]> git.lyx.org Git - features.git/commitdiff
Cmake tests: Use correct 'if' statement to handle language strings
authorKornel Benko <kornel@lyx.org>
Sat, 14 Jan 2017 11:54:08 +0000 (12:54 +0100)
committerKornel Benko <kornel@lyx.org>
Sat, 14 Jan 2017 11:54:08 +0000 (12:54 +0100)
development/autotests/ExportTests.cmake

index 9d3e6d0357cdd21797ac698a64160162f94feb79..bb73ab9eb2f5ebaa1a3923bc58e41216a411a9f8 100644 (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()