diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e448bdb127e0d66a8622308d5246b6db2d3d2ae..44f1481f78f7c21cc5fd902188e279b5202a4cf4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -163,7 +163,9 @@ add_library(tadah
     $<TARGET_OBJECTS:config::rc>
     )
 target_link_libraries(tadah PUBLIC config::rc)
+if(TADAH_ENABLE_HPO)
 target_link_libraries(tadah PUBLIC tadah.hpo)
+endif()
 
 
 add_executable (ta-dah bin/tadah.cpp)