From e47f28d1a3585dede7c47a17ca507ee22727e86c Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Thu, 4 Jul 2024 14:09:37 +0200 Subject: [PATCH] ETISSPlugin.cmake: Only write lib/plugins/list.txt if ETISS_BINARY_DIR is set --- cmake/ETISSPlugin.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/ETISSPlugin.cmake b/cmake/ETISSPlugin.cmake index a656bc1d8c..b386e51902 100644 --- a/cmake/ETISSPlugin.cmake +++ b/cmake/ETISSPlugin.cmake @@ -16,8 +16,10 @@ MACRO(ETISSPlugin ProjName) ) # mimicing installation in build tree as well - file(APPEND ${ETISS_BINARY_DIR}/lib/plugins/list.txt - "${ProjName},${ETISS_BINARY_DIR}/lib/plugins,${ProjName}\n") + IF(ETISS_BINARY_DIR) + file(APPEND ${ETISS_BINARY_DIR}/lib/plugins/list.txt + "${ProjName},${ETISS_BINARY_DIR}/lib/plugins,${ProjName}\n") + ENDIF() ENDMACRO() MACRO(ETISSPluginArchName ProjName ArchName)