diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13bac0493b6318b68c224ada350d00946db8544f..f31042c7ccf7f6ea2bca92e13e48d9bd4d3ff915 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -248,6 +248,11 @@ endif()
 #option(CHAMELEON_GEN_PREC "Generate source files precisions" ON)
 #------------------------------------------------------------------------------
 
+###############################################################################
+# Build dependency HQR library #
+################################
+add_subdirectory(hqr)
+include_directories(hqr/include)
 
 ###############################################################################
 # Look for dependencies #
@@ -964,12 +969,6 @@ if (NOT CHAMELEON_SIMULATION)
 
 endif()
 
-###############################################################################
-# Add HQR library #
-###################
-add_subdirectory(hqr)
-include_directories(hqr/include)
-
 ###############################################################################
 # Main library #
 ################