Commit 5b0ec3c6 authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Support building with alibuild version of OpenSSL

This modification in CMakeLists is introduced to avoid problems
with building this project with OpenSSL compiled by alibuild.
Without these modifications the build fails because JAlien-ROOT
includes libwebsockets headers which further include the OpenSSL
headers. The OpenSSL headers may not be reachable if they are not
available in the system include path, for example in alibuild
workspace.
parent 4300534b
......@@ -3,6 +3,7 @@ project(JAliEn-ROOT CXX)
list(APPEND CMAKE_PREFIX_PATH ${ROOTSYS})
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
find_package(JSONC REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(libwebsockets REQUIRED)
find_package(ROOT REQUIRED COMPONENTS Net Netx Tree)
foreach(FEATURE xrootd xml)
......@@ -34,6 +35,7 @@ set(SRCS
TJAlienSystem.cxx)
string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${LIBNAME} ${OPENSSL_INCLUDE_DIR})
ROOT_GENERATE_DICTIONARY(G__${LIBNAME} "${HDRS}" LINKDEF LinkDef.h)
add_library(${LIBNAME} SHARED "${SRCS}" G__${LIBNAME}.cxx)
target_link_libraries(${LIBNAME} ${ROOT_LIBRARIES} json-c websockets)
......
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