From 5de62b1c8352e60c3cb4990f7bd283f6b5fb3bc6 Mon Sep 17 00:00:00 2001 From: Ivan Pelipenko Date: Fri, 26 Jun 2020 09:51:05 +0300 Subject: [PATCH] FindPIP patch --- cmake/FindPIP.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/FindPIP.cmake b/cmake/FindPIP.cmake index 57eaa4fc..1db93014 100644 --- a/cmake/FindPIP.cmake +++ b/cmake/FindPIP.cmake @@ -138,8 +138,12 @@ foreach (_m ${__modules}) INTERFACE_LINK_LIBRARIES "PIP") endif() endforeach() -set_target_properties(PIP::IOUtils PROPERTIES INTERFACE_LINK_LIBRARIES "PIP::Crypt") -set_target_properties(PIP::Cloud PROPERTIES INTERFACE_LINK_LIBRARIES "PIP::IOUtils") +if(__module_IOUtils AND __module_Crypt) + set_target_properties(PIP::IOUtils PROPERTIES INTERFACE_LINK_LIBRARIES "PIP::Crypt") +endif() +if(__module_Cloud AND __module_IOUtils) + set_target_properties(PIP::Cloud PROPERTIES INTERFACE_LINK_LIBRARIES "PIP::IOUtils") +endif() include(PIPMacros)