From 6043b3f766526a6ea393b8d52b7be8b40e59596f Mon Sep 17 00:00:00 2001 From: burgholzer Date: Sat, 13 Jan 2024 12:55:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20guard=20install=20instruction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: burgholzer --- src/zx/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/zx/CMakeLists.txt b/src/zx/CMakeLists.txt index d36e078a3b..aff31aee71 100644 --- a/src/zx/CMakeLists.txt +++ b/src/zx/CMakeLists.txt @@ -21,9 +21,11 @@ if(NOT TARGET ${MQT_CORE_TARGET_NAME}-zx) $) add_library(MQT::Multiprecision ALIAS multiprecision) - # finally, we create install instructions for the respective header files - install(DIRECTORY ${MULTIPRECISION_INCLUDE_DIR}/boost - DESTINATION ${MQT_CORE_INCLUDE_INSTALL_DIR}) + if(MQT_CORE_INSTALL) + # finally, we create install instructions for the respective header files + install(DIRECTORY ${MULTIPRECISION_INCLUDE_DIR}/boost + DESTINATION ${MQT_CORE_INCLUDE_INSTALL_DIR}) + endif() endif() endif()