Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julia
Nektar
Commits
9ca8f922
Commit
9ca8f922
authored
Feb 04, 2014
by
Kilian Lackhove
Browse files
LibUtilities must be linked against rt for non-windows-systems
parent
a46f3a45
Changes
2
Hide whitespace changes
Inline
Side-by-side
library/LibUtilities/CMakeLists.txt
View file @
9ca8f922
...
...
@@ -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
)
...
...
templates/executable/CMakeLists.txt
View file @
9ca8f922
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment