aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2de6a9f..893a14d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,10 +22,10 @@ option(BUILD_GLES2_TESTS "Build tests for OpenGL ES2" OFF)
option(USE_WAFFLE "Use Waffle in place of GLUT" OFF)
if(USE_WAFFLE)
- # FIXME: Specify version requirements for Waffle.
- find_package(Waffle REQUIRED)
+ pkg_check_modules(WAFFLE REQUIRED waffle-1>=1.0)
add_definitions(-DUSE_WAFFLE)
- include_directories("${WAFFLE_INCLUDE_DIR}")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WAFFLE_CFLAGS}")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WAFFLE_CFLAGS}")
endif(USE_WAFFLE)
if(BUILD_GLES1_TESTS AND NOT USE_WAFFLE)