# The standard find_package for boost on Win finds the dynamic libs, so for dynamic linking to boost we need to #define:
# The standard find_package for boost on Win finds the dynamic libs, so for dynamic linking to boost we need to #define:
add_definitions(-DBOOST_ALL_NO_LIB)# Don't use the automatic library linking by boost with VS (#pragma ...). Instead, we specify everything here in cmake.
add_definitions(-DBOOST_ALL_NO_LIB)# Don't use the automatic library linking by boost with VS (#pragma ...). Instead, we specify everything here in cmake.
add_definitions(-DBOOST_ALL_DYN_LINK)# Link against the dynamic boost lib - needs to match with the version that find_package finds.
add_definitions(-DBOOST_ALL_DYN_LINK)# Link against the dynamic boost lib - needs to match with the version that find_package finds.
endif()
endif()
find_package(Boost 1.50.0 COMPONENTS system REQUIRED)
find_package(Boost 1.50.0 COMPONENTS system REQUIRED)