swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Raw File
Tip revision: b281c39d04e01de3baf06c482a8fe4496d3393b2 authored by johannes hanika on 16 November 2015, 16:47:25 UTC
Merge remote-tracking branch 'origin/pr/1035'
Tip revision: b281c39
FindColord.cmake
SET(COLORD_FIND_REQUIRED ${Colord_FIND_REQUIRED})

include(Prebuilt)

include(LibFindMacros)
libfind_pkg_check_modules(COLORD colord)
foreach(i ${COLORD_LIBRARIES})
	find_library(_colord_LIBRARY NAMES ${i} HINTS ${COLORD_LIBRARY_DIRS})
	LIST(APPEND COLORD_LIBRARY ${_colord_LIBRARY})
	unset(_colord_LIBRARY CACHE)
endforeach(i)
set(COLORD_LIBRARIES ${COLORD_LIBRARY})
unset(COLORD_LIBRARY CACHE)

if (COLORD_FOUND)
  set(COLORD ON CACHE BOOL "Build with libcolord support.")
endif (COLORD_FOUND)
back to top