mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
Add libpthread link to unit tests that require it.
This commit is contained in:
parent
543dce2ff0
commit
85c96b5567
@ -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
|
||||
|
@ -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})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user