diff --git a/cmake/FindPixman.cmake b/cmake/FindPixman.cmake index 7bfca77bd..a19a684bb 100644 --- a/cmake/FindPixman.cmake +++ b/cmake/FindPixman.cmake @@ -30,9 +30,10 @@ find_path(PIXMAN_INCLUDE_DIR NAMES pixman.h PATH_SUFFIXES pixman-1) find_library(PIXMAN_LIBRARY NAMES pixman-1) -find_package_handle_standard_args(pixman-1 DEFAULT_MSG PIXMAN_LIBRARY PIXMAN_INCLUDE_DIR) +find_package_handle_standard_args(Pixman DEFAULT_MSG PIXMAN_LIBRARY PIXMAN_INCLUDE_DIR) -if(PIXMAN-1_FOUND) +if(Pixman_FOUND) + set(PIXMAN_FOUND ON) set(PIXMAN_LIBRARIES ${PIXMAN_LIBRARY}) set(PIXMAN_INCLUDE_DIRS ${PIXMAN_INCLUDE_DIR}) endif()