From 20caf5e8b2a655265784c973b3d516698a69f646 Mon Sep 17 00:00:00 2001 From: mkirsz <marcin.kirsz@ed.ac.uk> Date: Wed, 10 Apr 2024 11:50:36 +0100 Subject: [PATCH] Fix HPO lib linking when HPO is not built --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e448bd..44f1481 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) -- GitLab