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:
Manolo Gouy
2011-01-06 10:24:58 +00:00
parent ead3432f9b
commit bc509d32eb
62 changed files with 134 additions and 131 deletions
+4 -4
View File
@@ -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
View File
@@ -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>