diff --git a/ApplicationCode/CMakeLists.txt b/ApplicationCode/CMakeLists.txt index eb120d625d..cfabd6f0b7 100644 --- a/ApplicationCode/CMakeLists.txt +++ b/ApplicationCode/CMakeLists.txt @@ -306,8 +306,7 @@ set( LINK_LIBRARIES # According to ivarun this is needed on OpenSuse, and Fedora. See: https://github.com/OPM/ResInsight/pull/7 if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") - set ( EXTERNAL_LINK_LIBRARIES - ${EXTERNAL_LINK_LIBRARIES} + list(APPEND EXTERNAL_LINK_LIBRARIES rt ) endif() diff --git a/CMakeLists.txt b/CMakeLists.txt index e80039866a..06a7b7a4a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,7 +168,7 @@ if (RESINSIGHT_USE_HDF5) add_definitions(${HDF5_DEFINITIONS}) include_directories(${HDF5_INCLUDE_DIRS}) - list(APPEND THIRD_PARTY_LIBRARIES + list(APPEND EXTERNAL_LINK_LIBRARIES ${HDF5_LIBRARIES} )