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()