Commit 7dc4cd0c authored by nfoy's avatar nfoy

find third party library for boost_chrono

parent b91174af
......@@ -10,7 +10,27 @@ IF(PATH_BOOST_CHRONO)
MESSAGE(STATUS " Found boost chrono includes...")
ADD_DEFINITIONS(-DTARGET_HAS_Boost_Chrono)
FIND_LIBRARY(LIB_Boost_Chrono NAMES "boost_chrono" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/lib NO_DEFAULT_PATH)
FIND_LIBRARY(LIB_Boost_Chrono NAMES "boost_chrono" PATHS ${OV_CUSTOM_DEPENDENCIES_PATH}/lib)
IF(LIB_Boost_Chrono)
MESSAGE(STATUS " [ OK ] lib ${LIB_Boost_Chrono}")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_Boost_Chrono})
ELSE(LIB_Boost_Chrono)
MESSAGE(STATUS " [FAILED] lib boost_chrono")
ENDIF(LIB_Boost_Chrono)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_Boost_Chrono})
# Fedora / Ubuntu
FIND_LIBRARY(LIB_STANDARD_MODULE_RT rt)
IF(LIB_STANDARD_MODULE_RT)
MESSAGE(STATUS " Found rt...")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIB_STANDARD_MODULE_RT})
ELSE(LIB_STANDARD_MODULE_RT)
MESSAGE(STATUS " FAILED to find rt...")
ENDIF(LIB_STANDARD_MODULE_RT)
ELSE(PATH_BOOST_CHRONO)
MESSAGE(STATUS " FAILED to find boost chrono includes...")
ENDIF(PATH_BOOST_CHRONO)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment