From f5ded73956f3a3bbfb7271bb1501db38e253a4fb Mon Sep 17 00:00:00 2001 From: DavidMarec <> Date: Thu, 10 May 2018 14:40:29 -0700 Subject: [PATCH] Add option to discard ULT test suite execution Setup a new option to avoid ULT test suite run after install in order to allow cross compilation. Append -DRUN_TEST_SUITE=OFF to the CMake command line. Change-Id: I4974ef0a5a2c40613cde7744f66531448f9b0277 --- CMakeLists.txt | 5 +++++ Source/GmmLib/CMakeLists.txt | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12e8c32..e018641 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,2 +1,7 @@ cmake_minimum_required (VERSION 3.1 FATAL_ERROR) + +if (NOT DEFINED RUN_TEST_SUITE) +option (RUN_TEST_SUITE "run test suite after install" ON) +endif (NOT DEFINED RUN_TEST_SUITE) + add_subdirectory(Source/GmmLib) diff --git a/Source/GmmLib/CMakeLists.txt b/Source/GmmLib/CMakeLists.txt index 37c799d..71b5e70 100644 --- a/Source/GmmLib/CMakeLists.txt +++ b/Source/GmmLib/CMakeLists.txt @@ -544,4 +544,6 @@ if(ARCH EQUAL 32) endif() endif() -add_subdirectory(ULT) +if(NOT DEFINED RUN_TEST_SUITE OR RUN_TEST_SUITE) + add_subdirectory(ULT) +endif()