FindPCRE.cmake 417 B

12345678910111213
  1. if(TARGET pcre)
  2. set(PCRE_FOUND TRUE)
  3. set(PCRE_INCLUDE_DIRS $<TARGET_PROPERTY:pcre,INTERFACE_INCLUDE_DIRECTORIES>)
  4. set(PCRE_LIBRARIES pcre)
  5. # Provide an alias for consistency with modern CMake
  6. if(NOT TARGET PCRE::PCRE)
  7. add_library(PCRE::PCRE ALIAS pcre)
  8. endif()
  9. else()
  10. set(PCRE_FOUND FALSE)
  11. message(FATAL_ERROR "PCRE was not added with add_subdirectory before calling find_package(PCRE).")
  12. endif()