boost components required
Brought to you by:
adedov
When I try to compile it with Boost static libraries, I need to apply patch for libiqxmlrpc/CMakeLists.txt that adds "chrono" component
@@ -3,7 +3,7 @@
include(FindOpenSSL)
include(CheckFunctionExists)
-find_package(Boost 1.41.0 COMPONENTS date_time thread system REQUIRED)
+find_package(Boost 1.41.0 COMPONENTS date_time thread system chrono REQUIRED)
include_directories(${Boost_INCLUDE_DIR} ${XML2_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR} ${PROJECT_BINARY_DIR}/libiqxmlrpc)
check_function_exists(poll HAVE_POLL)
As I have static libs of Boost, I need to add:
'-DBoost_USE_STATIC_LIBS=ON',
'-DBoost_USE_MULTITHREADED=ON',
'-DBoost_USE_STATIC_RUNTIME=ON',
Then I try to build solution with tests, I see:
"2>LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc110-mt-sgd-1_55.lib'"
so, unit_test also required.
Why you need Chrono in Libiqxmlrpc? Does date_time use it?
Last edit: Anton Dedov 2015-05-20
Oh, sorry. it's not needed.