@@ -88,13 +88,13 @@ endmacro()
8888# CassOptionalDependencies
8989#
9090# Configure enabled optional dependencies if found or if Windows use an
91- # external project to build Boost, OpenSSL, zlib.
91+ # external project to build OpenSSL and zlib.
9292#
9393# Output: CASS_INCLUDES and CASS_LIBS
9494#------------------------
9595macro (CassOptionalDependencies)
9696 # Boost
97- if (CASS_USE_BOOST_ATOMIC OR CASS_BUILD_INTEGRATION_TESTS )
97+ if (CASS_USE_BOOST_ATOMIC)
9898 CassUseBoost()
9999 endif ()
100100
@@ -387,7 +387,6 @@ macro(CassConfigureTests)
387387 # Add CCM bridge as a dependency for integration tests
388388 set (CCM_BRIDGE_INCLUDES "${CASS_ROOT_DIR} /test/ccm_bridge/src" )
389389 add_subdirectory (${CASS_ROOT_DIR} /test /ccm_bridge)
390- add_subdirectory (${CASS_ROOT_DIR} /test /integration_tests)
391390 endif ()
392391
393392 if (CASS_BUILD_INTEGRATION_TESTS OR CASS_BUILD_UNIT_TESTS)
@@ -524,11 +523,10 @@ endmacro()
524523#------------------------
525524# CassUseBoost
526525#
527- # Add includes, libraries, define flags required for using Boost if found or if
528- # Windows use an external project to build Boost.
526+ # Add includes and define flags required for using Boost if found.
529527#
530- # Input: CASS_USE_STATIC_LIBS, CASS_USE_BOOST_ATOMIC, CASS_INCLUDES, CASS_LIBS
531- # Output: CASS_INCLUDES and CASS_LIBS
528+ # Input: CASS_USE_BOOST_ATOMIC, CASS_INCLUDES
529+ # Output: CASS_INCLUDES
532530#------------------------
533531macro (CassUseBoost)
534532 # Allow for boost directory to be specified on the command line
@@ -550,64 +548,15 @@ macro(CassUseBoost)
550548 add_definitions (-DBOOST_ALL_NO_LIB)
551549 endif ()
552550
553- # Determine if shared or static boost libraries should be used
554- if (CASS_USE_STATIC_LIBS OR
555- (WIN32 AND CASS_BUILD_INTEGRATION_TESTS)) # Force the use of Boost static libraries for Windows (e.g. executables)
556- set (Boost_USE_STATIC_LIBS ON )
557- else ()
558- set (Boost_USE_STATIC_LIBS OFF )
559- add_definitions (-DBOOST_ALL_DYN_LINK)
560- endif ()
561- set (Boost_USE_STATIC_RUNTIME OFF )
562- set (Boost_USE_MULTITHREADED ON )
563- add_definitions (-DBOOST_THREAD_USES_MOVE)
564-
565551 # Check for general Boost availability
566552 find_package (Boost ${CASS_MINIMUM_BOOST_VERSION} QUIET )
567- if ((WIN32 AND NOT Boost_FOUND) AND
568- (CASS_USE_BOOST_ATOMIC OR CASS_BUILD_INTEGRATION_TESTS))
569- message (STATUS "Unable to Locate Boost: Third party build step will be performed" )
570- include (ExternalProject-Boost)
571- else ()
572- message (STATUS "Boost version: v${Boost_MAJOR_VERSION} .${Boost_MINOR_VERSION} .${Boost_SUBMINOR_VERSION} " )
573- # Ensure the driver components exist (optional)
574- if (CASS_USE_BOOST_ATOMIC)
575- if (NOT Boost_INCLUDE_DIRS)
576- message (FATAL_ERROR "Boost headers required to build driver because of -DCASS_USE_BOOST_ATOMIC=On" )
577- endif ()
578-
579- # Assign Boost include for atomics
580- set (CASS_INCLUDES ${CASS_INCLUDES} ${Boost_INCLUDE_DIRS} )
553+ if (CASS_USE_BOOST_ATOMIC)
554+ if (NOT Boost_INCLUDE_DIRS)
555+ message (FATAL_ERROR "Boost headers required to build driver because of -DCASS_USE_BOOST_ATOMIC=On" )
581556 endif ()
582557
583- # Determine if Boost components are available for test executables
584- if (CASS_BUILD_INTEGRATION_TESTS)
585- # Handle new required version of CMake for Boost v1.66.0 (Windows only)
586- if (WIN32 )
587- if (Boost_FOUND)
588- if (Boost_VERSION GREATER 106600 OR Boost_VERSION EQUAL 106600)
589- # Ensure CMake version is v3.11.0+
590- if (CMAKE_VERSION VERSION_LESS 3.11.0)
591- message (FATAL_ERROR "Boost v${Boost_MAJOR_VERSION} .${Boost_MINOR_VERSION} .${Boost_SUBMINOR_VERSION} requires CMake v3.11.0+."
592- "Updgrade CMake or downgrade Boost to v${CASS_MINIMUM_BOOST_VERSION} - v1.65.1." )
593- endif ()
594- endif ()
595- endif ()
596- endif ()
597-
598- # Ensure Boost components are available
599- find_package (Boost ${CASS_MINIMUM_BOOST_VERSION} COMPONENTS chrono system thread unit_test_framework)
600- if (NOT Boost_FOUND)
601- # Ensure Boost was not found due to minimum version requirement
602- set (CASS_FOUND_BOOST_VERSION "${Boost_MAJOR_VERSION} .${Boost_MINOR_VERSION} .${Boost_SUBMINOR_VERSION} " )
603- if ((CASS_FOUND_BOOST_VERSION VERSION_GREATER "${CASS_MINIMUM_BOOST_VERSION} " )
604- OR (CASS_FOUND_BOOST_VERSION VERSION_EQUAL "${CASS_MINIMUM_BOOST_VERSION} " ))
605- message (FATAL_ERROR "Boost [chrono, system, thread, and unit_test_framework] are required to build tests" )
606- else ()
607- message (FATAL_ERROR "Boost v${CASS_FOUND_BOOST_VERSION} Found: v${CASS_MINIMUM_BOOST_VERSION} or greater required" )
608- endif ()
609- endif ()
610- endif ()
558+ # Assign Boost include for atomics
559+ set (CASS_INCLUDES ${CASS_INCLUDES} ${Boost_INCLUDE_DIRS} )
611560 endif ()
612561
613562 # Determine if additional Boost definitions are required for driver/executables
0 commit comments