From 6f046ef648af948ccecc0a28c93d905f0700afd1 Mon Sep 17 00:00:00 2001 From: Tom St Denis Date: Wed, 20 Mar 2019 13:56:29 -0400 Subject: Add option to add rt library to build for EL/CENTOS builds Signed-off-by: Tom St Denis --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75c97f5..0918119 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,11 +58,18 @@ if(LLVM_CMAKE_DIR) endif() endif() +if($ENV{UMR_NEED_RT}) +set(RT_LIBS "-lrt") +else() +set(RT_LIBS "") +endif() + set(REQUIRED_EXTERNAL_LIBS ${CURSES_LIBRARIES} ${PCIACCESS_LIBRARIES} Threads::Threads ${LLVM_LIBS} + ${RT_LIBS} ) # Global setting: build everything position independent -- cgit v1.2.3