File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -353,15 +353,18 @@ SET (WITH_QWTPOLAR TRUE CACHE BOOL "Determines whether QwtPolar should be built"
353
353
354
354
IF (WITH_QWTPOLAR )
355
355
ADD_DEFINITIONS (-DWITH_QWTPOLAR )
356
+
356
357
# Try to find QwtPolar on the system
357
358
FIND_PACKAGE (QwtPolar )
359
+
358
360
# If not found on the system, offer the possibility to build QwtPolar
359
361
# internally
360
- IF (NOT FOUND_QwtPolar )
361
- SET (DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE )
362
- ELSE (NOT FOUND_QwtPolar )
362
+ IF (QWTPOLAR_FOUND )
363
363
SET (DEFAULT_WITH_INTERNAL_QWTPOLAR FALSE )
364
- ENDIF (NOT FOUND_QwtPolar )
364
+ ELSE (QWTPOLAR_FOUND )
365
+ SET (DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE )
366
+ ENDIF (QWTPOLAR_FOUND )
367
+
365
368
SET (WITH_INTERNAL_QWTPOLAR DEFAULT_WITH_INTERNAL_QWTPOLAR CACHE BOOL "Use internal build of QwtPolar" )
366
369
367
370
IF (WITH_INTERNAL_QWTPOLAR )
You can’t perform that action at this time.
0 commit comments