Browse Source

CMake: Do not build tests when cross-compiling

We may want to in the future but for now disable this.
pull/3777/head
Gleb Mazovetskiy 4 years ago
parent
commit
41cb1b5cfb
  1. 5
      CMakeLists.txt

5
CMakeLists.txt

@ -127,6 +127,11 @@ include(CTest)
# to be after the options.
include(Platforms)
# Note: `CMAKE_CROSSCOMPILING` is only available after the `project` call.
if(CMAKE_CROSSCOMPILING)
set(BUILD_TESTING OFF)
endif()
# Recalculate the dependent options after including the Platforms:
if(BUILD_TESTING)
# For tests, we build a libdevilutionx.so shared library.

Loading…
Cancel
Save