diff --git a/example/lapack_to_morse/CMakeLists.txt b/example/lapack_to_morse/CMakeLists.txt index 5b60d9e7557eff6d81de4ece7da817cd75fa528c..429de050a6d552ceae9a28e9e072802ca91701c0 100644 --- a/example/lapack_to_morse/CMakeLists.txt +++ b/example/lapack_to_morse/CMakeLists.txt @@ -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