patch to allow lib name at configure time (from C.Bergstrom)

llvm-svn: 237130
This commit is contained in:
Andrey Churbanov 2015-05-12 13:31:57 +00:00
parent fae20d3565
commit 5a7a5d1dab
1 changed files with 2 additions and 1 deletions

View File

@ -380,12 +380,13 @@ set(lib_item "${lib_item}${version}")
if(${WINDOWS}) if(${WINDOWS})
set(lib_item "${lib_item}md") set(lib_item "${lib_item}md")
endif() endif()
set(IOMP_LIB_NAME "${lib_item}" CACHE STRING "OMP library name")
set(lib_ext "${dll}") set(lib_ext "${dll}")
# ${lib_file} is real library name: # ${lib_file} is real library name:
# libiomp5.so for Linux # libiomp5.so for Linux
# libiomp5.dylib for Mac # libiomp5.dylib for Mac
# libiomp5md.dll for Windows # libiomp5md.dll for Windows
set(lib_file "${lib_item}${lib_ext}") set(lib_file "${IOMP_LIB_NAME}${lib_ext}")
######################################## ########################################
# Setting export file names # Setting export file names