summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2015-05-12 13:31:57 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2015-05-12 13:31:57 +0000
commit5a7a5d1dabd57084b504da81cfb8543d1a46f3e0 (patch)
tree22a7e59e271c032ce6b5f27c8abc7e081862ae42 /openmp
parentfae20d35656d0c1e00375ce5dbdce012f339d1fd (diff)
downloadbcm5719-llvm-5a7a5d1dabd57084b504da81cfb8543d1a46f3e0.tar.gz
bcm5719-llvm-5a7a5d1dabd57084b504da81cfb8543d1a46f3e0.zip
patch to allow lib name at configure time (from C.Bergstrom)
llvm-svn: 237130
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt
index 6d824abbe13..e947f3e382f 100644
--- a/openmp/runtime/CMakeLists.txt
+++ b/openmp/runtime/CMakeLists.txt
@@ -380,12 +380,13 @@ set(lib_item "${lib_item}${version}")
if(${WINDOWS})
set(lib_item "${lib_item}md")
endif()
+set(IOMP_LIB_NAME "${lib_item}" CACHE STRING "OMP library name")
set(lib_ext "${dll}")
# ${lib_file} is real library name:
# libiomp5.so for Linux
# libiomp5.dylib for Mac
# libiomp5md.dll for Windows
-set(lib_file "${lib_item}${lib_ext}")
+set(lib_file "${IOMP_LIB_NAME}${lib_ext}")
########################################
# Setting export file names
OpenPOWER on IntegriCloud