summaryrefslogtreecommitdiff
path: root/tools/ctest_scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2023-12-08 12:06:51 +0100
committerEven Rouault <even.rouault@spatialys.com>2023-12-08 13:28:49 +0100
commitd5af1d23a718e1d55ea368bad044f7f2b9e98012 (patch)
treecbaf5259445023d0d43ec56eb3682baf043da987 /tools/ctest_scripts
parente21123b6991c2d64339ecebd6617f2f7c42de783 (diff)
tools/travis-ci/install.sh: workaround issue with jpylyzer on Mac
Diffstat (limited to 'tools/ctest_scripts')
-rw-r--r--tools/ctest_scripts/travis-ci.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/ctest_scripts/travis-ci.cmake b/tools/ctest_scripts/travis-ci.cmake
index 6dbe52c4..b9f75fff 100644
--- a/tools/ctest_scripts/travis-ci.cmake
+++ b/tools/ctest_scripts/travis-ci.cmake
@@ -127,13 +127,19 @@ BUILD_UNIT_TESTS:BOOL=TRUE
# JPEG2000 test files are available with git clone https://github.com/uclouvain/openjpeg-data.git
OPJ_DATA_ROOT:PATH=$ENV{PWD}/data
-# jpylyzer is available with on GitHub: https://github.com/openpreserve/jpylyzer
-JPYLYZER_EXECUTABLE=$ENV{PWD}/jpylyzer/jpylyzer.${JPYLYZER_EXT}
-
# Enable astyle
WITH_ASTYLE:BOOL=${BUILD_ASTYLE}
" )
+if(EXISTS "$ENV{PWD}/jpylyzer/jpylyzer.${JPYLYZER_EXT}")
+ set(CACHE_CONTENTS "
+${CACHE_CONTENTS}
+
+# jpylyzer is available with on GitHub: https://github.com/openpreserve/jpylyzer
+JPYLYZER_EXECUTABLE=$ENV{PWD}/jpylyzer/jpylyzer.${JPYLYZER_EXT}
+")
+endif()
+
#---------------------
#1. openjpeg specific:
set( CTEST_PROJECT_NAME "OPENJPEG" )