@@ -315,16 +315,16 @@ if( GTEST_FOUND )
315315 # gcc > 4.3.2 to support ACML.
316316 # If the runtime is being built by the project, use it, otherwise link to a runtime library specified in the install prefix
317317 if ( BUILD_RUNTIME )
318- target_link_libraries (test -correctness ${ACML_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
319- target_link_libraries (test -medium ${ACML_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
320- target_link_libraries (test -short ${ACML_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
318+ target_link_libraries (test -correctness ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
319+ target_link_libraries (test -medium ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
320+ target_link_libraries (test -short ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
321321 else ( )
322322 target_link_libraries (test -correctness
323- ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${OPENCL_LIBRARIES} ${runtime.library})
323+ ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${OPENCL_LIBRARIES} ${THREAD_LIBRARY} ${ runtime.library})
324324 target_link_libraries (test -medium
325- ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${OPENCL_LIBRARIES} ${runtime.library})
325+ ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${OPENCL_LIBRARIES} ${THREAD_LIBRARY} ${ runtime.library})
326326 target_link_libraries (test -short
327- ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${OPENCL_LIBRARIES} ${runtime.library})
327+ ${ACML_LIBRARIES} ${GTEST_LIBRARIES} ${OPENCL_LIBRARIES} ${THREAD_LIBRARY} ${ runtime.library})
328328 endif ( )
329329 else ( )
330330 #Link against the netlib reference library
@@ -353,13 +353,13 @@ if( GTEST_FOUND )
353353
354354 if ( BUILD_RUNTIME )
355355 if ( NETLIB_FOUND )
356- target_link_libraries (test -correctness ${Netlib_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
357- target_link_libraries (test -medium ${Netlib_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
358- target_link_libraries (test -short ${Netlib_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
356+ target_link_libraries (test -correctness ${Netlib_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
357+ target_link_libraries (test -medium ${Netlib_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
358+ target_link_libraries (test -short ${Netlib_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
359359 else ( )
360- target_link_libraries (test -correctness ${BLAS_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
361- target_link_libraries (test -medium ${BLAS_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
362- target_link_libraries (test -short ${BLAS_LIBRARIES} ${GTEST_LIBRARIES} clBLAS)
360+ target_link_libraries (test -correctness ${BLAS_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
361+ target_link_libraries (test -medium ${BLAS_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
362+ target_link_libraries (test -short ${BLAS_LIBRARIES} ${GTEST_LIBRARIES} ${THREAD_LIBRARY} clBLAS)
363363 endif ( )
364364 else ( )
365365 if ( NETLIB_FOUND )
@@ -405,12 +405,12 @@ if( GTEST_FOUND )
405405 add_executable (test -performance ${SRC_PERF} ${SRC_COMMON}
406406 ${SRC_COMMON_TIMER} ${PERF_HEADERS} ${TESTS_HEADERS}
407407 ${SRC_COMMON_REFIMPL} )
408- target_link_libraries (test -performance ${ACML_LIBRARIES} )
408+ target_link_libraries (test -performance ${ACML_LIBRARIES} ${THREAD_LIBRARY} )
409409 set_target_properties ( test -performance PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR} /staging" )
410410
411411
412412 if ( BUILD_RUNTIME )
413- target_link_libraries (test -performance ${GTEST_LIBRARIES} ${TIME_LIBRARY} clBLAS)
413+ target_link_libraries (test -performance ${GTEST_LIBRARIES} ${TIME_LIBRARY} ${THREAD_LIBRARY} clBLAS)
414414 else ()
415415 target_link_libraries ( test -performance ${GTEST_LIBRARIES} ${TIME_LIBRARY} ${OPENCL_LIBRARIES} ${runtime.library} )
416416 endif ()
0 commit comments