mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update CMake to only look for Qt5 if RESINSIGHT_BUILD_WITH_QT5 is set
This commit is contained in:
5
ThirdParty/nightcharts/CMakeLists.txt
vendored
5
ThirdParty/nightcharts/CMakeLists.txt
vendored
@@ -2,7 +2,10 @@ cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
project (nightcharts)
|
||||
|
||||
find_package(Qt5Core CONFIG QUIET)
|
||||
if (RESINSIGHT_BUILD_WITH_QT5)
|
||||
find_package(Qt5 COMPONENTS Core QUIET)
|
||||
endif(RESINSIGHT_BUILD_WITH_QT5)
|
||||
|
||||
if (Qt5Core_FOUND)
|
||||
find_package(Qt5 CONFIG REQUIRED Core Widgets)
|
||||
else()
|
||||
|
Reference in New Issue
Block a user