Commit 63815d0f authored by cdelort's avatar cdelort
Browse files

CORALCOOL-3069: Add libffi dependency on slc6

parent e34beba1
# - Locate ffilibrary
# Defines:
# FFI_FOUND
# FFI_LIBRARIES
# FFI_LIBRARY_DIRS (not cached)
find_library(FFI_LIBRARIES NAMES ffi)
get_filename_component(FFI_LIBRARY_DIRS ${FFI_LIBRARIES} PATH)
# handle the QUIETLY and REQUIRED arguments and set FFI_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FFI DEFAULT_MSG FFI_LIBRARIES)
mark_as_advanced(FFI_FOUND FFI_LIBRARIES)
......@@ -105,6 +105,9 @@ coral_build_and_release_env(SET CORALSYS ${CORALSYS})
# Workarounds to use the Python3 build of QMTest with Python2 (CORALCOOL-2954)
# NB This must come AFTER the QMTest environment setup so as to override it!
if (LCG_python3 STREQUAL on)
if (BINARY_TAG MATCHES "slc6")
coral_env_for_package(ffi) #CORALCOOL-3069
endif()
coral_build_env(PREPEND PATH ${CMAKE_BINARY_DIR}/CoolTest/bin)
coral_release_env(PREPEND PATH ${CMAKE_INSTALL_PREFIX}/CoolTest/bin)
endif()
......
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