diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2bea275fbed9a6ffe63058864bcb63b56129bd1..83fb9c76f89845d14826ee3c22864d0431cbb6ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -954,9 +954,9 @@ endif()
 # Save extra dependencies (all required links)
 list(APPEND CHAMELEON_DEP ${EXTRA_LIBRARIES})
 # We remove duplicate dependencies ensuring that redundant libraries are placed last
-list(REVERSE CHAMELEON_DEP)
+#list(REVERSE CHAMELEON_DEP)
 list(REMOVE_DUPLICATES CHAMELEON_DEP)
-list(REVERSE CHAMELEON_DEP)
+#list(REVERSE CHAMELEON_DEP)
 
 # Check for the subdirectories
 # ----------------------------