In case you are not familiar with CMake, it's easy to override selected libraries if cmake picks wrong library.
I normally use cmake-gui for configuring and after configure step is ready, you can easily check selected libraries and change the library variable Boost_UNIT_TEST_FRAMEWORK_LIBRARY to the correct one in the GUI. Alternatively you can give the library in the command line. CMake caches the variables, so it's enough to set it once.
In case you are not familiar with CMake, it's easy to override selected libraries if cmake picks wrong library.
I normally use cmake-gui for configuring and after configure step is ready, you can easily check selected libraries and change the library variable Boost_UNIT_ TEST_FRAMEWORK_ LIBRARY to the correct one in the GUI. Alternatively you can give the library in the command line. CMake caches the variables, so it's enough to set it once.