File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ option(UseQtFive "Build with Qt5 and libpoppler-qt5" ON)
36
36
option (UpdateTranslations "Do you want to update the .ts files (WARNING: running make clean will delete them!)" OFF )
37
37
option (BuildTests "Build unit tests (this requires pdflatex or internet access and DownloadTestPDFs=ON)" ON )
38
38
option (RunDualScreenTests "Also run tests that require two screens to be connected" ON )
39
+ option (RunTestsOnBigEndian "Run tests on a big-endian system" OFF )
39
40
option (BoostStaticLink "Link statically against the boost libraries" OFF )
40
41
option (WindowsStaticLink "Windows/MSVC only: Link statically against the dependencies and set /MT instead of /MD" ON )
41
42
option (UsePrerenderedPDF "Use prerendered PDFs included in the source for testing, instead of building with pdflatex" OFF )
@@ -75,8 +76,17 @@ if(BuildTests)
75
76
# Set a default timeout to 60 seconds
76
77
set (DART_TESTING_TIMEOUT 60 )
77
78
set (CTEST_TEST_TIMEOUT 60 )
78
- include (CTest )
79
- add_subdirectory (testing )
79
+ # Check for big endian
80
+ include (TestBigEndian )
81
+ TEST_BIG_ENDIAN (BigEndian )
82
+ if ( NOT BigEndian OR RunTestsOnBigEndian )
83
+ include (CTest )
84
+ add_subdirectory (testing )
85
+ else ()
86
+ message (WARNING "The unit tests have been temporarily disabled on big-endian "
87
+ "systems. If you want to help in debugging this, please pass "
88
+ "-DRunTestsOnBigEndian=ON to cmake to force their execution." )
89
+ endif ()
80
90
endif ()
81
91
82
92
#### Installation
You can’t perform that action at this time.
0 commit comments