Commit 38c1f53f authored by Guillaume Pasero's avatar Guillaume Pasero

COMP: allow Qt5 to compile on old kernels

parent 2ca03c1e
Pipeline #258 passed with stage
in 27 minutes and 11 seconds
......@@ -106,6 +106,10 @@ elseif(MSVC)
set(QT5_SB_CONFIG "${QT5_SB_CONFIG} -mp")
endif()
if(LINUX AND USE_LOW_KERNEL_VERSION)
set(QT5_SB_CONFIG "${QT5_SB_CONFIG} -no-feature-getentropy -no-feature-renameat2")
endif()
if(WIN32)
set(QT5_BIN_EXT ".exe")
file(TO_NATIVE_PATH ${QT5_SB_SRC}/configure.bat QT5_CONFIGURE_SCRIPT)
......
......@@ -117,6 +117,13 @@ set(SUPERBUILD_OTB_VERSION "${SUPERBUILD_OTB_VERSION_MAJOR}.${SUPERBUILD_OTB_VER
message("OTB version : ${SUPERBUILD_OTB_VERSION}")
# Special setting for low kernel versions
if(LINUX)
option(USE_LOW_KERNEL_VERSION "Try to keep the minimal kernel version as low as possible" OFF)
endif()
# Default install prefix
get_filename_component(PARENT_OF_BINARY_DIR ${CMAKE_BINARY_DIR} PATH)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT USE_DEFAULT_INSTALL_PREFIX)
set (CMAKE_INSTALL_PREFIX
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment