File: FindPIL.cmake

package info (click to toggle)
mir 2.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,636 kB
  • sloc: cpp: 174,574; xml: 13,422; ansic: 8,221; python: 1,337; sh: 874; makefile: 216; javascript: 37
file content (8 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
execute_process(
  COMMAND python3 -c "from PIL import Image"
  RESULT_VARIABLE HAVE_PIL
)

if (NOT ${HAVE_PIL} EQUAL 0)
  message(FATAL_ERROR "Python Imaging Library (PIL) not found")
endif()