/indra/cmake/CARes.cmake

https://bitbucket.org/lindenlab/viewer-beta/ · CMake · 21 lines · 18 code · 2 blank · 1 comment · 4 complexity · ae64535730b197d7b9a1f47737a4ea1f MD5 · raw file

  1. # -*- cmake -*-
  2. include(Linking)
  3. include(Prebuilt)
  4. set(CARES_FIND_QUIETLY ON)
  5. set(CARES_FIND_REQUIRED ON)
  6. if (STANDALONE)
  7. include(FindCARes)
  8. else (STANDALONE)
  9. use_prebuilt_binary(ares)
  10. add_definitions("-DCARES_STATICLIB")
  11. if (WINDOWS)
  12. set(CARES_LIBRARIES areslib)
  13. elseif (DARWIN)
  14. set(CARES_LIBRARIES cares)
  15. else (WINDOWS)
  16. set(CARES_LIBRARIES cares)
  17. endif (WINDOWS)
  18. set(CARES_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/ares)
  19. endif (STANDALONE)