Commit 9231501e authored by Christophe Giboudeaux's avatar Christophe Giboudeaux
Browse files

Simplify.

Epoxy_GLX_HEADER-NOTFOUND already evaluates to FALSE
parent 0ff113d3
......@@ -40,13 +40,7 @@ set(Epoxy_DEFINITIONS ${PKG_Epoxy_CFLAGS})
find_path(Epoxy_INCLUDE_DIRS NAMES epoxy/gl.h HINTS ${PKG_Epoxy_INCLUDEDIR} ${PKG_Epoxy_INCLUDE_DIRS})
find_library(Epoxy_LIBRARIES NAMES epoxy HINTS ${PKG_Epoxy_LIBDIR} ${PKG_Epoxy_LIBRARIES_DIRS})
find_file(Epoxy_GLX_HEADER NAMES epoxy/glx.h HINTS ${Epoxy_INCLUDE_DIRS})
if (Epoxy_GLX_HEADER STREQUAL "Epoxy_GLX_HEADER-NOTFOUND")
set(Epoxy_HAS_GLX FALSE CACHE BOOL "whether glx is available")
else ()
set(Epoxy_HAS_GLX TRUE CACHE BOOL "whether glx is available")
endif()
find_file(Epoxy_GLX_HEADER NAMES epoxy/glx.h HINTS ${Epoxy_INCLUDE_DIRS} DOC "whether GLX is available")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Epoxy DEFAULT_MSG Epoxy_LIBRARIES Epoxy_INCLUDE_DIRS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment