PageRenderTime 34ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/LLCommon.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 30 lines | 21 code | 5 blank | 4 comment | 3 complexity | 49719371ed3b3e4e0aa003425d947f03 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(APR)
  3. include(Boost)
  4. include(EXPAT)
  5. include(ZLIB)
  6. include(GooglePerfTools)
  7. set(LLCOMMON_INCLUDE_DIRS
  8. ${LIBS_OPEN_DIR}/llcommon
  9. ${APRUTIL_INCLUDE_DIR}
  10. ${APR_INCLUDE_DIR}
  11. ${Boost_INCLUDE_DIRS}
  12. )
  13. if (LINUX)
  14. # In order to support using ld.gold on linux, we need to explicitely
  15. # specify all libraries that llcommon uses.
  16. # llcommon uses `clock_gettime' which is provided by librt on linux.
  17. set(LLCOMMON_LIBRARIES llcommon rt)
  18. else (LINUX)
  19. set(LLCOMMON_LIBRARIES llcommon)
  20. endif (LINUX)
  21. add_definitions(${TCMALLOC_FLAG})
  22. set(LLCOMMON_LINK_SHARED ON CACHE BOOL "Build the llcommon target as a shared library.")
  23. if(LLCOMMON_LINK_SHARED)
  24. add_definitions(-DLL_COMMON_LINK_SHARED=1)
  25. endif(LLCOMMON_LINK_SHARED)