Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 9f2a3bd2 authored by gsell's avatar gsell
Browse files

static linking problem fixed

if the target link libraries are defined for libOPAL, CMake reorders the
libraries and static linking fails. Defining the dependencies for the opal
binaries solves this issue
parent c530d5b7
No related branches found
No related tags found
1 merge request!195Resolve "linking with static boost libraries fails"
......@@ -141,18 +141,6 @@ endif ()
#
add_library (libOPAL ${OPAL_SRCS})
set_target_properties (libOPAL PROPERTIES OUTPUT_NAME OPAL)
target_link_libraries (libOPAL
${OPTP_LIBS}
${OPTP_LIBRARY}
${IPPL_LIBRARY}
${GSL_LIBRARY}
${GSL_CBLAS_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARIES}
${Boost_LIBRARIES}
m
z
)
if (ENABLE_DKS)
target_link_libraries (libOPAL
......@@ -170,6 +158,16 @@ target_link_libraries (libOPAL
add_executable (opal Main.cpp)
target_link_libraries( opal
libOPAL
${OPTP_LIBS}
${OPTP_LIBRARY}
${IPPL_LIBRARY}
${GSL_LIBRARY}
${GSL_CBLAS_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARIES}
${Boost_LIBRARIES}
m
z
${CMAKE_DL_LIBS}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment