Open
Description
I tried to compile a small test with xtensor-blas but I can't get cmake to configure properly. I installed xtensor-blas using cmake in a user directory pointed by CMAKE_PREFIX_PATH. The xtensor-blasConfig.cmake is found but i get the following error :
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Creating xtensor-blas target
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- A library with BLAS API found.
-- A library with BLAS API found.
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- xtensor-blas target exists # checks I added into xtensor-blas cmake
CMake Error at /home/narvorpi/work/narval/soft/install/lib/cmake/xtensor-blas/xtensor-blasConfig.cmake:53 (target_link_libraries):
Cannot specify link libraries for target "xtensor-blas" which is not built
by this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/narvorpi/work/narval/code/narval_tbn/cxx/narval_tools/build/CMakeFiles/CMakeOutput.log".
See also "/home/narvorpi/work/narval/code/narval_tbn/cxx/narval_tools/build/CMakeFiles/CMakeError.log".
Seems like the target is created in xtensor-blasTargets.cmake, the xtensor-blasConfig.cmake sees the target but for a reason this line fails.
target_link_libraries(xtensor-blas INTERFACE ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES})
Any ideas ?
Metadata
Metadata
Assignees
Labels
No labels