Commit fc00c516 authored by PRUVOST Florent's avatar PRUVOST Florent

save chameleon dependencies in the course of find process

parent 1dc760d1
This diff is collapsed.
......@@ -253,11 +253,15 @@ add_library(chameleon ${CHAMELEON_SRCS} ${CHAMELEON_SRCSF})
target_link_libraries(chameleon coreblas)
if(CHAMELEON_SCHED_STARPU)
target_link_libraries(chameleon chameleon_starpu)
list(INSERT CHAMELEON_DEP 0 -lchameleon_starpu)
elseif(CHAMELEON_SCHED_PARSEC)
target_link_libraries(chameleon chameleon_parsec)
list(INSERT CHAMELEON_DEP 0 -lchameleon_parsec)
elseif(CHAMELEON_SCHED_QUARK)
target_link_libraries(chameleon chameleon_quark)
list(INSERT CHAMELEON_DEP 0 -lchameleon_quark)
endif()
list(INSERT CHAMELEON_DEP 0 -lchameleon)
add_dependencies(chameleon
chameleon_include
......
......@@ -100,6 +100,7 @@ set(COREBLAS_SRCS
# Compile step
# ------------
add_library(coreblas ${COREBLAS_SRCS})
list(INSERT CHAMELEON_DEP 0 -lcoreblas)
add_dependencies(coreblas coreblas_include)
set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran)
set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
......
......@@ -73,15 +73,9 @@ if(NOT CHAMELEON_SIMULATION)
cudablas)
endif()
if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_examples
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS})
endif()
if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_examples
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS})
endif()
......
......@@ -74,15 +74,9 @@ if(NOT CHAMELEON_SIMULATION)
cudablas)
endif()
if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_ltm
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS})
endif()
if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_ltm
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS})
endif()
......
......@@ -47,15 +47,9 @@ if(NOT CHAMELEON_SIMULATION)
cudablas)
endif()
if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_ooc
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS})
endif()
if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_ooc
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS})
endif()
......
......@@ -129,15 +129,9 @@ if(NOT CHAMELEON_SIMULATION)
)
endif()
if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_tests
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS})
endif()
if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_tests
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS})
endif()
......
......@@ -176,15 +176,9 @@ if(NOT CHAMELEON_SIMULATION)
)
endif()
if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_timings
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS})
endif()
if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_timings
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS})
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment