[segyio] 10/376: Optionally turn off building of matlab tests

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:03:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit 0bd416f43e435856baa1a3dddd0e13cd5726467d
Author: Kjell W. Kongsvik <kwko at statoil.com>
Date:   Wed Oct 5 14:31:56 2016 +0200

    Optionally turn off building of matlab tests
    
    If missing licenses for mcc, or problem with license server
---
 CMakeLists.txt       | 2 ++
 tests/CMakeLists.txt | 6 ++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc1a986..00856fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,11 +42,13 @@ install(TARGETS segyinspect DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
 
 if (BUILD_MEX)
     add_subdirectory(mex)
+    option(BUILD_MEX_TESTS            "Build matlab mex tests" ON)
 else (BUILD_MEX)
     unset(MATLAB_MCC CACHE)
     unset(MATLAB_MEX CACHE)
     unset(MATLAB_MEXEXT CACHE)
     unset(MATLAB_ROOT CACHE)
+    unset(BUILD_MEX_TESTS CACHE)
 endif()
 
 add_subdirectory(python)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0a64837..5c2fb68 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -7,8 +7,10 @@ add_segyio_test(segy test_segy.c)
 add_segyio_test(segyspec test_segyspec.c)
 
 if(BUILD_MEX)
-    add_matlab_test(matlab.segyspec test_segyspec_mex.m test_segyspec_mex)
-    add_matlab_test(matlab.segy test_segy_mex.m test_segy_mex)
+    if(BUILD_MEX_TESTS)
+        add_matlab_test(matlab.segyspec test_segyspec_mex.m test_segyspec_mex)
+        add_matlab_test(matlab.segy test_segy_mex.m test_segy_mex)
+    endif()
 endif()
 
 add_python_test(python.segy test_segy.py)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list