CMake biz: Instead of providing elusive prints of missing dependencies for required features and continuing the build configuration, fail fast instead; user can easily disable the feature or fix the paths for the dependency.

This commit is contained in:
Stinkfist0
2015-11-11 13:24:34 +02:00
parent d912e73282
commit 431e993ba3
3 changed files with 18 additions and 24 deletions
-9
View File
@@ -17,12 +17,6 @@
# #
################################################################################
OPTION( QT_USE_QTVIEWER "IfcOpenShell QT GUI Viewer, QT environment required" OFF )
IF (QT_USE_QTVIEWER)
# Find QT header files
SET(QT_MIN_VERSION "4.5.0")
FIND_PACKAGE(Qt4 REQUIRED)
@@ -59,6 +53,3 @@ ADD_EXECUTABLE( QTviewer ${QTviewer_SRCS} ${QTviewer_MOC_SRCS})
#http://www.qtcentre.org/wiki/index.php?title=Compiling_Qt4_apps_with_CMake
TARGET_LINK_libRARIES (QTviewer IfcParse IfcGeom ${QT_LIBRARIES} ${OPENCASCADE_LIBRARIES})
ENDIF (QT_USE_QTVIEWER)