Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cmake/Modules/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# BOOST_LIBRARIES_SUFFIX - Boost libraries name suffix (e.g -vc71-mt-gd-1_34, -gcc41-mt...)
#
# BOOST_DATE_TIME_FOUND True if Boost Date Time was found.
# BOOST_SYSTEM_FOUND True if Boost System was found.
# BOOST_FILESYSTEM_FOUND True if Boost Filesystem was found.
# BOOST_IOSTREAMS_FOUND True if Boost Iostream was found.
# BOOST_PRG_EXEC_MONITOR_FOUND True if Boost Program Exec Monitor was found.
Expand All @@ -23,6 +24,7 @@
# BOOST_WSERIALIZATION_FOUND True if Boost WSerialization was found.
#
# BOOST_DATE_TIME_LIBRARY The Boost Date Time libary.
# BOOST_SYSTEM_LIBRARY The Boost System libary.
# BOOST_FILESYSTEM_LIBRARY The Boost Filesystem libary.
# BOOST_IOSTREAMS_LIBRARY The Boost Iostream libary.
# BOOST_PRG_EXEC_MONITOR_LIBRARY The Boost Program libary.
Expand Down Expand Up @@ -193,6 +195,15 @@ else (BOOST_LIBRARIES AND BOOST_INCLUDE_DIRS)

endif (NOT BOOST_DATE_TIME_LIBRARY)

if (NOT BOOST_SYSTEM_LIBRARY)
find_library(BOOST_SYSTEM_LIBRARY
NAMES
boost_system${TMP_BOOST_LIBRARIES_SUFFIX}
PATHS
${BOOST_LIBRARIES_SEARCH_DIRS}
)
endif (NOT BOOST_SYSTEM_LIBRARY)

if (NOT BOOST_FILESYSTEM_LIBRARY)
find_library(BOOST_FILESYSTEM_LIBRARY
NAMES
Expand Down Expand Up @@ -316,6 +327,9 @@ else (BOOST_LIBRARIES AND BOOST_INCLUDE_DIRS)
if (BOOST_DATE_TIME_LIBRARY)
set(BOOST_DATE_TIME_FOUND TRUE)
endif (BOOST_DATE_TIME_LIBRARY)
if (BOOST_SYSTEM_LIBRARY)
set(BOOST_SYSTEM_FOUND TRUE)
endif (BOOST_SYSTEM_LIBRARY)
if (BOOST_FILESYSTEM_LIBRARY)
set(BOOST_FILESYSTEM_FOUND TRUE)
endif (BOOST_FILESYSTEM_LIBRARY)
Expand Down Expand Up @@ -365,6 +379,12 @@ else (BOOST_LIBRARIES AND BOOST_INCLUDE_DIRS)
${BOOST_DATE_TIME_LIBRARY}
)
endif (BOOST_DATE_TIME_FOUND)
if (BOOST_SYSTEM_FOUND)
set(BOOST_LIBRARIES
${BOOST_LIBRARIES}
${BOOST_SYSTEM_LIBRARY}
)
endif (BOOST_SYSTEM_FOUND)
if (BOOST_FILESYSTEM_FOUND)
set(BOOST_LIBRARIES
${BOOST_LIBRARIES}
Expand Down
4 changes: 4 additions & 0 deletions libH/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ endif(COMMAND cmake_policy)
##############

find_package(Boost REQUIRED)
if (NOT BOOST_SYSTEM_FOUND)
message(FATAL_ERROR "Boost system was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_SYSTEM_FOUND)
if (NOT BOOST_FILESYSTEM_FOUND)
message(FATAL_ERROR "Boost filesystem was not found!\nPlease check your boost development library installation.")
endif (NOT BOOST_FILESYSTEM_FOUND)
Expand Down Expand Up @@ -85,6 +88,7 @@ link_directories(
)

target_link_libraries(H
${BOOST_SYSTEM_LIBRARY}
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_THREAD_LIBRARY}
)
Expand Down