Mentions légales du service

Skip to content
Snippets Groups Projects
Commit cdd41c56 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

correct step0 build problem when BUILD_SHARED_LIBS=ON

parent 5b6c941d
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,6 @@ endif() ...@@ -66,7 +66,6 @@ endif()
# specific compilation for step0 because we potentially want to use # specific compilation for step0 because we potentially want to use
# multithreaded BLAS and LAPACK libraries for this step # multithreaded BLAS and LAPACK libraries for this step
unset(libs_for_step0) unset(libs_for_step0)
list(APPEND libs_for_step0 ${libs_for_ltm})
if(NOT CHAMELEON_SIMULATION) if(NOT CHAMELEON_SIMULATION)
...@@ -83,6 +82,8 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -83,6 +82,8 @@ if(NOT CHAMELEON_SIMULATION)
link_directories(${MAGMA_LIBRARY_DIRS}) link_directories(${MAGMA_LIBRARY_DIRS})
endif() endif()
list(APPEND libs_for_step0 ${libs_for_ltm})
list(APPEND libs_for_ltm list(APPEND libs_for_ltm
coreblas coreblas
${LAPACKE_LIBRARIES} ${LAPACKE_LIBRARIES}
...@@ -150,7 +151,9 @@ endif() ...@@ -150,7 +151,9 @@ endif()
link_directories(${HWLOC_LIBRARY_DIRS}) link_directories(${HWLOC_LIBRARY_DIRS})
# message(STATUS "libs timings: ${libs_for_ltm}")
list(REMOVE_DUPLICATES libs_for_ltm)
# message(STATUS "libs examples: ${libs_for_ltm}")
foreach(_ltm ${LTM_SOURCES}) foreach(_ltm ${LTM_SOURCES})
get_filename_component(_name_exe ${_ltm} NAME_WE) get_filename_component(_name_exe ${_ltm} NAME_WE)
add_executable(${_name_exe} ${_ltm}) add_executable(${_name_exe} ${_ltm})
...@@ -161,6 +164,7 @@ foreach(_ltm ${LTM_SOURCES}) ...@@ -161,6 +164,7 @@ foreach(_ltm ${LTM_SOURCES})
endforeach() endforeach()
add_executable(step0 step0.c) add_executable(step0 step0.c)
list(REMOVE_DUPLICATES libs_for_step0)
set_property(TARGET step0 PROPERTY LINKER_LANGUAGE Fortran) set_property(TARGET step0 PROPERTY LINKER_LANGUAGE Fortran)
target_link_libraries(step0 ${libs_for_step0}) target_link_libraries(step0 ${libs_for_step0})
install(TARGETS step0 install(TARGETS step0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment