You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindThirdPartyBoost_System.cmake 939B

3 years ago
1234567891011121314151617181920212223
  1. # ---------------------------------
  2. # Finds third party boost
  3. # Adds library to target
  4. # Adds include path
  5. # ---------------------------------
  6. IF(UNIX)
  7. FIND_LIBRARY(LIB_Boost_System NAMES "boost_system-mt" PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES lib NO_DEFAULT_PATH)
  8. FIND_LIBRARY(LIB_Boost_System NAMES "boost_system-mt" PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES lib)
  9. FIND_LIBRARY(LIB_Boost_System NAMES "boost_system" PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES lib NO_DEFAULT_PATH)
  10. FIND_LIBRARY(LIB_Boost_System NAMES "boost_system" PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES lib)
  11. IF(LIB_Boost_System)
  12. debug_message( " [ OK ] lib ${LIB_Boost_System}")
  13. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_Boost_System} )
  14. ELSE(LIB_Boost_System)
  15. MESSAGE(WARNING " [FAILED] lib boost_system-mt")
  16. ENDIF(LIB_Boost_System)
  17. ENDIF(UNIX)
  18. IF(WIN32)
  19. OV_LINK_BOOST_LIB("system" ${OV_WIN32_BOOST_VERSION})
  20. ENDIF(WIN32)