Refine CMake to find boost.
This commit is contained in:
@@ -11,7 +11,13 @@ set(UT_SRCS
|
||||
set(UT_TARGET_NAME webcc_unittest)
|
||||
|
||||
# Common libraries to link.
|
||||
set(UT_LIBS webcc gtest ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
|
||||
set(UT_LIBS
|
||||
webcc
|
||||
gtest
|
||||
Boost::filesystem
|
||||
Boost::system
|
||||
Boost::date_time
|
||||
"${CMAKE_THREAD_LIBS_INIT}")
|
||||
|
||||
if(WEBCC_ENABLE_SSL)
|
||||
set(UT_LIBS ${UT_LIBS} ${OPENSSL_LIBRARIES})
|
||||
|
||||
Reference in New Issue
Block a user