Commit f048a185 authored by Mccaskey, Alex's avatar Mccaskey, Alex

fixing libraries without -l in exatn-config --libs

Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent cd316e2f
Pipeline #86456 passed with stage
in 4 minutes and 12 seconds
......@@ -17,7 +17,18 @@ def main(argv=None):
'-L', '@CMAKE_INSTALL_PREFIX@/lib', '-lCppMicroServices','-ltalsh', '-lexatn', '-lexatn-numerics', '-lexatn-runtime', '-lexatn-runtime-graph', '-ldl', '-lpthread']
if '@EXA_TALSH_ONLY@' != 'YES':
baseLibs += ['-lexatensor']
baseLibs += '@MPI_CXX_LIBRARIES@'.split(';') + '@REQUIRED_EXATENSOR_LIBS@'.split(';')
exatnLibs = '@REQUIRED_EXATENSOR_LIBS@'.split(';')
for i,e in enumerate(exatnLibs):
if e == 'gfortran':
exatnLibs[i] = '-lgfortran'
if e == 'pthread':
exatnLibs[i] = '-lpthread'
if e == 'dl':
exatnLibs[i] = '-ldl'
if e == 'm':
exatnLibs[i] = '-lm'
baseLibs += '@MPI_CXX_LIBRARIES@'.split(';') + exatnLibs
output += baseLibs
# Print out the linker flags used in CMake
......
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