Skip to content

Commit

Permalink
Pass cmake toolchain file and skip tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Nov 22, 2017
1 parent af5f1c6 commit a836759
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ list(APPEND configure_options "-DUSE_CCACHE=ON")
if(DEFINED target_architecture)
list(APPEND configure_options "-DTARGET_ARCHITECTURE=${target_architecture}")
endif()
if(NOT "$ENV{CMAKE_TOOLCHAIN_FILE}" STREQUAL "")
set(skip_tests TRUE) # cross-compiling, can't run the tests
list(APPEND configure_options "-DCMAKE_TOOLCHAIN_FILE=${CTEST_SOURCE_DIRECTORY}/$ENV{CMAKE_TOOLCHAIN_FILE}")
endif()

if("${COMPILER_VERSION}" MATCHES "(GCC|Open64).*4\\.[01234567]\\."
OR "${COMPILER_VERSION}" MATCHES "GCC 4.8.0"
Expand Down

0 comments on commit a836759

Please sign in to comment.