- explicitly link against boost-system lib for platforms that do not do that by default

master
Lothar Braun 2011-03-07 15:35:01 +01:00
parent 57d3a0cbff
commit 003a98296f
1 changed files with 5 additions and 0 deletions

View File

@ -117,9 +117,14 @@ IF (Boost_FOUND)
IF (NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
MESSAGE(FATAL_ERROR "Could not find boost unit test framework")
ENDIF (NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
FIND_LIBRARY(Boost_SYSTEM_LIBRARY NAMES boost_system-mt boost_system PATHS ${Boost_LIBRARY_DIRS})
IF (NOT Boost_SYSTEM_LIBRARY)
MESSAGE(FATAL_ERROR "Could not find boost system library")
ENDIF (NOT Boost_SYSTEM_LIBRARY)
TARGET_LINK_LIBRARIES(vermont
${Boost_REGEX_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
)
ELSE (Boost_FOUND)
MESSAGE(FATAL_ERROR "Could not find boost libraries")