Skip to content

Commit

Permalink
COMP: SuperBuild: Support explicit overriding of QT_MIN_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Oct 27, 2022
1 parent fb6c7d0 commit 41a8ddb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ before_install:
- sudo apt-get -qq --yes install ninja-build mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev mesa-utils-extra libglapi-mesa libglapi-mesa qt5-qmake qtbase5-dev libqt5opengl5-dev libqt5svg5-dev
script:
- cd bin
- cmake -GNinja -DTRAVIS_BUILD:BOOL=ON -DQt5_PATH=$(dpkg -L qtbase5-dev) ../Superbuild
- cmake -GNinja -DTRAVIS_BUILD:BOOL=ON -DQT_MIN_VERSION:STRING=5.9 -DQt5_PATH=$(dpkg -L qtbase5-dev) ../Superbuild
- travis_wait 70 ninja

after_success:
Expand Down
11 changes: 5 additions & 6 deletions Superbuild/Superbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,12 @@ else()
option(DO_ZLIB_MANGLE "Mangle Zlib names to avoid conflicts with Qt5 or other external libraries" ON)
endif()

if (TRAVIS_BUILD)
set(QT_MIN_VERSION "5.9")
else()
set(QT_MIN_VERSION "5.12")
endif()

if(SEG3D_BUILD_INTERFACE)

if(NOT DEFINED QT_MIN_VERSION)
set(QT_MIN_VERSION "5.12")
endif()

set(Qt5_PATH "" CACHE PATH "Path to directory where Qt 5 is installed. Directory should contain lib and bin subdirectories.")
#set(CMAKE_AUTOMOC ON)

Expand Down

0 comments on commit 41a8ddb

Please sign in to comment.