clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
839 stars 240 forks source link

fix build issue when include clBLAS as a cmake subproject #332

Open yang-le opened 6 years ago

yang-le commented 6 years ago

When include clBLAS as a cmake subproject using add_subdectory(), it seems that some paths are wrong. To fix it, I just replace ${CMAKE_SOURCE_DIR}/library with ${CMAKE_CURRENT_SOURCE_DIR} and it works.

tingxingdong commented 6 years ago

change CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR is good and recommended. Why change build *.so to OFF? Please modify this OFF.

yang-le commented 6 years ago

OK, previous change reverted from CMakeLists.txt.