mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-21 20:42:28 +02:00
Merge pull request #103 from dividiti/link_clblas_with_pthread
Link clBLAS together with pthread
This commit is contained in:
commit
a2bfae3c46
|
@ -272,8 +272,9 @@ if(CLIENTS OR TESTS)
|
||||||
set(REF_INCLUDES )
|
set(REF_INCLUDES )
|
||||||
set(REF_LIBRARIES )
|
set(REF_LIBRARIES )
|
||||||
if(CLBLAS_FOUND)
|
if(CLBLAS_FOUND)
|
||||||
|
find_package(Threads)
|
||||||
|
set(REF_LIBRARIES ${REF_LIBRARIES} ${CLBLAS_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
set(REF_INCLUDES ${REF_INCLUDES} ${CLBLAS_INCLUDE_DIRS})
|
set(REF_INCLUDES ${REF_INCLUDES} ${CLBLAS_INCLUDE_DIRS})
|
||||||
set(REF_LIBRARIES ${REF_LIBRARIES} ${CLBLAS_LIBRARIES})
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
add_definitions(" /DCLBLAST_REF_CLBLAS")
|
add_definitions(" /DCLBLAST_REF_CLBLAS")
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue