From 65b50f5517921e6edcd7e4834f77872e1b58486b Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Fri, 21 Nov 2014 15:04:19 +0000
Subject: [PATCH] do not remove duplicates: could cause problems with the libs
 order during the link

---
 example/lapack_to_morse/CMakeLists.txt | 2 --
 1 file changed, 2 deletions(-)

diff --git a/example/lapack_to_morse/CMakeLists.txt b/example/lapack_to_morse/CMakeLists.txt
index 429de050a..472b29fa9 100644
--- a/example/lapack_to_morse/CMakeLists.txt
+++ b/example/lapack_to_morse/CMakeLists.txt
@@ -152,7 +152,6 @@ endif()
 link_directories(${HWLOC_LIBRARY_DIRS})
 
 
-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)
@@ -164,7 +163,6 @@ 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
-- 
GitLab