Add libpthread link to unit tests that require it.

This commit is contained in:
Ivar Ursin Nikolaisen 2012-08-27 15:22:03 +02:00
parent 543dce2ff0
commit 85c96b5567
2 changed files with 7 additions and 1 deletions

View File

@ -103,6 +103,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
${CMAKE_CURRENT_SOURCE_DIR}/../../../ThirdParty/Ert/geometry/lib/libgeometry.a
${CMAKE_CURRENT_SOURCE_DIR}/../../../ThirdParty/Ert/well/lib/libwell.a
lapack
pthread
)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set ( EXTERNAL_LINK_LIBRARIES

View File

@ -52,6 +52,11 @@ add_executable( ${ProjectName}
)
target_link_libraries( ${ProjectName} ${LINK_LIBRARIES})
set( EXTERNAL_LINK_LIBRARIES
pthread
)
target_link_libraries( ${ProjectName} ${LINK_LIBRARIES} ${EXTERNAL_LINK_LIBRARIES})