Commit cdd41c56 authored by PRUVOST Florent's avatar PRUVOST Florent

correct step0 build problem when BUILD_SHARED_LIBS=ON

parent 5b6c941d
......@@ -66,7 +66,6 @@ endif()
# specific compilation for step0 because we potentially want to use
# multithreaded BLAS and LAPACK libraries for this step
unset(libs_for_step0)
list(APPEND libs_for_step0 ${libs_for_ltm})
if(NOT CHAMELEON_SIMULATION)
......@@ -83,6 +82,8 @@ if(NOT CHAMELEON_SIMULATION)
link_directories(${MAGMA_LIBRARY_DIRS})
endif()
list(APPEND libs_for_step0 ${libs_for_ltm})
list(APPEND libs_for_ltm
coreblas
${LAPACKE_LIBRARIES}
......@@ -150,7 +151,9 @@ endif()
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})
get_filename_component(_name_exe ${_ltm} NAME_WE)
add_executable(${_name_exe} ${_ltm})
......@@ -161,6 +164,7 @@ foreach(_ltm ${LTM_SOURCES})
endforeach()
add_executable(step0 step0.c)
list(REMOVE_DUPLICATES libs_for_step0)
set_property(TARGET step0 PROPERTY LINKER_LANGUAGE Fortran)
target_link_libraries(step0 ${libs_for_step0})
install(TARGETS step0
......
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