Skip to content
Permalink
Browse files

fix default for DEFAULT_WITH_INTERNAL_QWTPOLAR setting

  • Loading branch information
jef-n committed Oct 12, 2016
1 parent a1367d4 commit 00859ae35c1c1addaa0d0756c75117087e751069
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/app/CMakeLists.txt
@@ -353,15 +353,18 @@ SET (WITH_QWTPOLAR TRUE CACHE BOOL "Determines whether QwtPolar should be built"

IF (WITH_QWTPOLAR)
ADD_DEFINITIONS(-DWITH_QWTPOLAR)

# Try to find QwtPolar on the system
FIND_PACKAGE(QwtPolar)

# If not found on the system, offer the possibility to build QwtPolar
# internally
IF(NOT FOUND_QwtPolar)
SET(DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE)
ELSE(NOT FOUND_QwtPolar)
IF(QWTPOLAR_FOUND)
SET(DEFAULT_WITH_INTERNAL_QWTPOLAR FALSE)
ENDIF(NOT FOUND_QwtPolar)
ELSE(QWTPOLAR_FOUND)
SET(DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE)
ENDIF(QWTPOLAR_FOUND)

SET (WITH_INTERNAL_QWTPOLAR DEFAULT_WITH_INTERNAL_QWTPOLAR CACHE BOOL "Use internal build of QwtPolar")

IF(WITH_INTERNAL_QWTPOLAR)

0 comments on commit 00859ae

Please sign in to comment.
You can’t perform that action at this time.