File: FindPIL.cmake

package info (click to toggle)
mir 2.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 22,080 kB
  • sloc: cpp: 192,777; xml: 13,784; ansic: 8,207; python: 1,304; sh: 794; makefile: 258
file content (8 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (5)
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()