mirror of
https://github.com/fltk/fltk.git
synced 2026-06-07 00:55:23 +08:00
Fix STR #2504 (first part). Replaced HAVE _CAIRO by FLTK_HAVE_CAIRO and USE_CAIRO
by FLTK_USE_CAIRO everywhere. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-4
@@ -33,9 +33,9 @@ macro(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
|
||||
target_link_libraries(${NAME} ${LIBRARIES})
|
||||
|
||||
# link in optional libraries
|
||||
if(HAVE_CAIRO)
|
||||
if(FLTK_HAVE_CAIRO)
|
||||
target_link_libraries(${NAME} fltk_cairo)
|
||||
endif(HAVE_CAIRO)
|
||||
endif(FLTK_HAVE_CAIRO)
|
||||
|
||||
if(USE_XFT)
|
||||
target_link_libraries(${NAME} ${X11_Xft_LIB})
|
||||
@@ -133,6 +133,6 @@ CREATE_EXAMPLE(shape shape.cxx "fltk;fltk_gl;${OPENGL_LIBRARIES}")
|
||||
endif(OPENGL_FOUND)
|
||||
|
||||
# Cairo demo
|
||||
if(HAVE_CAIRO)
|
||||
if(FLTK_HAVE_CAIRO)
|
||||
CREATE_EXAMPLE(cairo_test cairo_test.cxx fltk)
|
||||
endif(HAVE_CAIRO)
|
||||
endif(FLTK_HAVE_CAIRO)
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef HAVE_CAIRO
|
||||
#ifdef FLTK_HAVE_CAIRO
|
||||
|
||||
#include <FL/Fl_Cairo_Window.H>
|
||||
#include <FL/Fl_Box.H>
|
||||
|
||||
Reference in New Issue
Block a user