@@ -315,16 +315,16 @@ if( GTEST_FOUND )
315
315
# gcc > 4.3.2 to support ACML.
316
316
# If the runtime is being built by the project, use it, otherwise link to a runtime library specified in the install prefix
317
317
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 )
321
321
else ( )
322
322
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} )
324
324
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} )
326
326
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} )
328
328
endif ( )
329
329
else ( )
330
330
#Link against the netlib reference library
@@ -353,13 +353,13 @@ if( GTEST_FOUND )
353
353
354
354
if ( BUILD_RUNTIME )
355
355
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 )
359
359
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 )
363
363
endif ( )
364
364
else ( )
365
365
if ( NETLIB_FOUND )
@@ -405,12 +405,12 @@ if( GTEST_FOUND )
405
405
add_executable (test -performance ${SRC_PERF} ${SRC_COMMON}
406
406
${SRC_COMMON_TIMER} ${PERF_HEADERS} ${TESTS_HEADERS}
407
407
${SRC_COMMON_REFIMPL} )
408
- target_link_libraries (test -performance ${ACML_LIBRARIES} )
408
+ target_link_libraries (test -performance ${ACML_LIBRARIES} ${THREAD_LIBRARY} )
409
409
set_target_properties ( test -performance PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR} /staging" )
410
410
411
411
412
412
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 )
414
414
else ()
415
415
target_link_libraries ( test -performance ${GTEST_LIBRARIES} ${TIME_LIBRARY} ${OPENCL_LIBRARIES} ${runtime.library} )
416
416
endif ()
0 commit comments