#1786 Use EXTERNAL_LINK_LIBRARIES for external binaries

This commit is contained in:
Magne Sjaastad 2017-08-17 09:12:27 +02:00
parent 534572345d
commit 6ddf8aae27
2 changed files with 2 additions and 3 deletions

View File

@ -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 # According to ivarun this is needed on OpenSuse, and Fedora. See: https://github.com/OPM/ResInsight/pull/7
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set ( EXTERNAL_LINK_LIBRARIES list(APPEND EXTERNAL_LINK_LIBRARIES
${EXTERNAL_LINK_LIBRARIES}
rt rt
) )
endif() endif()

View File

@ -168,7 +168,7 @@ if (RESINSIGHT_USE_HDF5)
add_definitions(${HDF5_DEFINITIONS}) add_definitions(${HDF5_DEFINITIONS})
include_directories(${HDF5_INCLUDE_DIRS}) include_directories(${HDF5_INCLUDE_DIRS})
list(APPEND THIRD_PARTY_LIBRARIES list(APPEND EXTERNAL_LINK_LIBRARIES
${HDF5_LIBRARIES} ${HDF5_LIBRARIES}
) )