I failed to reproduce it with a toy project, so please bear with me...
I compile and install boost at config time (by generating the helper cmake
file with external project and running cmake on it).
It is found by standard findBoost afterwards and linked against
Boost_UNIT_TEST_FRAMEWORK_LIBRARY.
All is fine till here. Now project is built, but trying to run the
resulting binary on mac throws me:

dyld: Library not loaded: libboost_unit_test_framework.dylib
  Referenced from: /blablabla/util/./test
  Reason: image not found
Trace/BPT trap: 5

On linux everything works well.
The similar project with a toy library compiled and linked instead of boost
works fine on mac too.

cmake 3.2,3.4. linux, macos
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to