Commit 9ca8f922 authored by Kilian Lackhove's avatar Kilian Lackhove

LibUtilities must be linked against rt for non-windows-systems

parent a46f3a45
......@@ -348,6 +348,9 @@ TARGET_LINK_LIBRARIES(LibUtilities
${ZLIB_LIBRARY}
${TINYXML_LIB}
)
IF( UNIX AND NOT APPLE )
TARGET_LINK_LIBRARIES(LibUtilities rt)
ENDIF( UNIX AND NOT APPLE )
SET_LAPACK_LINK_LIBRARIES(LibUtilities)
INSTALL(FILES ${ExpressionTemplates} DESTINATION ${NEKTAR_INCLUDE_DIR}/ExpressionTemplates COMPONENT dev)
......
......@@ -21,11 +21,6 @@ ADD_DEFINITIONS(${NEKTAR++_DEFINITIONS})
INCLUDE_DIRECTORIES(${NEKTAR++_INCLUDE_DIRS} ${NEKTAR++_TP_INCLUDE_DIRS})
LINK_DIRECTORIES(${NEKTAR++_LIBRARY_DIRS} ${NEKTAR++_TP_LIBRARY_DIRS})
# workaround for libLibUtilities: http://stackoverflow.com/questions/17150075/undefined-reference-to-clock-gettime-although-lrt-is-given
# to fix, add rt to TARGET_LINK_LIBRARIES(LibUtilities ... in library/LibUtilities/CMakeLists.txt:341, but i have no idea how non-Linux
# platforms handle this
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed")
# TODO - Add an entry here for every source file in your project. Must not be empty!
SET(SourceFileNames
ExampleSolver.cpp
......
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