From 0dbf83eef706a3adfde2fcf4815fe500b36df5ef Mon Sep 17 00:00:00 2001 From: Johannes Lenzen Date: Mon, 3 May 2021 14:03:27 +0200 Subject: [PATCH] fixbundle depencies only if qt found --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc804660..9ab137ec 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,7 +170,9 @@ if(${CMAKE_PROJECT_NAME} MATCHES "OpenMesh") "${CMAKE_BINARY_DIR}/fixbundle.cmake" @ONLY IMMEDIATE) # let bundle generation depend on all targets - add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui) + if (QT_FOUND) + add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui) + endif() # Required for Snow leopard, and the latest qt. Then the resources have to be copied if ( EXISTS "/opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Resources/qt_menu.nib" )