configure cmake file even if QT5 is not found

This commit is contained in:
Max Lyon
2020-12-07 12:36:40 +01:00
parent 3a2801fe76
commit d0e517ebe4

View File

@@ -154,7 +154,7 @@ endif()
# Only call fixbundle, when we are building OpenMesh standalone # Only call fixbundle, when we are building OpenMesh standalone
if(${PROJECT_NAME} MATCHES "OpenMesh") if(${PROJECT_NAME} MATCHES "OpenMesh")
if (WIN32 AND BUILD_APPS AND QT5_FOUND) if (WIN32 AND BUILD_APPS)
# prepare bundle generation cmake file and add a build target for it # prepare bundle generation cmake file and add a build target for it
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/cmake/fixbundle.cmake.win.in" configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/cmake/fixbundle.cmake.win.in"
"${CMAKE_CURRENT_BINARY_DIR}/fixbundle.win.cmake" @ONLY IMMEDIATE) "${CMAKE_CURRENT_BINARY_DIR}/fixbundle.win.cmake" @ONLY IMMEDIATE)
@@ -167,7 +167,7 @@ if(${PROJECT_NAME} MATCHES "OpenMesh")
endif() endif()
# On apple we do a fixbundle, which is only necessary for the apps and not for the libs # On apple we do a fixbundle, which is only necessary for the apps and not for the libs
if (APPLE AND BUILD_APPS AND QT5_FOUND) if (APPLE AND BUILD_APPS)
# prepare bundle generation cmake file and add a build target for it # prepare bundle generation cmake file and add a build target for it
configure_file ("${CMAKE_SOURCE_DIR}/cmake/fixbundle.cmake.in" configure_file ("${CMAKE_SOURCE_DIR}/cmake/fixbundle.cmake.in"
"${CMAKE_BINARY_DIR}/fixbundle.cmake" @ONLY IMMEDIATE) "${CMAKE_BINARY_DIR}/fixbundle.cmake" @ONLY IMMEDIATE)