diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2019-03-20 13:56:29 -0400 |
---|---|---|
committer | Tom St Denis <tom.stdenis@amd.com> | 2019-03-20 13:56:29 -0400 |
commit | 6f046ef648af948ccecc0a28c93d905f0700afd1 (patch) | |
tree | e32d67f024ba1238e30aaf486a6349fc6926077d | |
parent | 32dd5a84ce4363499eebb0e9b949ba211c3562af (diff) |
Add option to add rt library to build for EL/CENTOS builds
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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 |