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}) ...@@ -253,11 +253,15 @@ add_library(chameleon ${CHAMELEON_SRCS} ${CHAMELEON_SRCSF})
target_link_libraries(chameleon coreblas) target_link_libraries(chameleon coreblas)
if(CHAMELEON_SCHED_STARPU) if(CHAMELEON_SCHED_STARPU)
target_link_libraries(chameleon chameleon_starpu) target_link_libraries(chameleon chameleon_starpu)
list(INSERT CHAMELEON_DEP 0 -lchameleon_starpu)
elseif(CHAMELEON_SCHED_PARSEC) elseif(CHAMELEON_SCHED_PARSEC)
target_link_libraries(chameleon chameleon_parsec) target_link_libraries(chameleon chameleon_parsec)
list(INSERT CHAMELEON_DEP 0 -lchameleon_parsec)
elseif(CHAMELEON_SCHED_QUARK) elseif(CHAMELEON_SCHED_QUARK)
target_link_libraries(chameleon chameleon_quark) target_link_libraries(chameleon chameleon_quark)
list(INSERT CHAMELEON_DEP 0 -lchameleon_quark)
endif() endif()
list(INSERT CHAMELEON_DEP 0 -lchameleon)
add_dependencies(chameleon add_dependencies(chameleon
chameleon_include chameleon_include
......
...@@ -100,6 +100,7 @@ set(COREBLAS_SRCS ...@@ -100,6 +100,7 @@ set(COREBLAS_SRCS
# Compile step # Compile step
# ------------ # ------------
add_library(coreblas ${COREBLAS_SRCS}) add_library(coreblas ${COREBLAS_SRCS})
list(INSERT CHAMELEON_DEP 0 -lcoreblas)
add_dependencies(coreblas coreblas_include) add_dependencies(coreblas coreblas_include)
set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran) set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran)
set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
......
...@@ -73,15 +73,9 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -73,15 +73,9 @@ if(NOT CHAMELEON_SIMULATION)
cudablas) cudablas)
endif() endif()
if(CHAMELEON_USE_CUDA) if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_examples
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS}) link_directories(${CUDA_LIBRARY_DIRS})
endif() endif()
if(CHAMELEON_USE_MAGMA) if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_examples
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS}) link_directories(${MAGMA_LIBRARY_DIRS})
endif() endif()
......
...@@ -74,15 +74,9 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -74,15 +74,9 @@ if(NOT CHAMELEON_SIMULATION)
cudablas) cudablas)
endif() endif()
if(CHAMELEON_USE_CUDA) if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_ltm
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS}) link_directories(${CUDA_LIBRARY_DIRS})
endif() endif()
if(CHAMELEON_USE_MAGMA) if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_ltm
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS}) link_directories(${MAGMA_LIBRARY_DIRS})
endif() endif()
......
...@@ -47,15 +47,9 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -47,15 +47,9 @@ if(NOT CHAMELEON_SIMULATION)
cudablas) cudablas)
endif() endif()
if(CHAMELEON_USE_CUDA) if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_ooc
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS}) link_directories(${CUDA_LIBRARY_DIRS})
endif() endif()
if(CHAMELEON_USE_MAGMA) if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_ooc
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS}) link_directories(${MAGMA_LIBRARY_DIRS})
endif() endif()
......
...@@ -129,15 +129,9 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -129,15 +129,9 @@ if(NOT CHAMELEON_SIMULATION)
) )
endif() endif()
if(CHAMELEON_USE_CUDA) if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_tests
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS}) link_directories(${CUDA_LIBRARY_DIRS})
endif() endif()
if(CHAMELEON_USE_MAGMA) if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_tests
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS}) link_directories(${MAGMA_LIBRARY_DIRS})
endif() endif()
......
...@@ -176,15 +176,9 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -176,15 +176,9 @@ if(NOT CHAMELEON_SIMULATION)
) )
endif() endif()
if(CHAMELEON_USE_CUDA) if(CHAMELEON_USE_CUDA)
list(APPEND libs_for_timings
${CUDA_LIBRARIES}
)
link_directories(${CUDA_LIBRARY_DIRS}) link_directories(${CUDA_LIBRARY_DIRS})
endif() endif()
if(CHAMELEON_USE_MAGMA) if(CHAMELEON_USE_MAGMA)
list(APPEND libs_for_timings
${MAGMA_LIBRARIES}
)
link_directories(${MAGMA_LIBRARY_DIRS}) link_directories(${MAGMA_LIBRARY_DIRS})
endif() 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