diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-11-19 12:51:35 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-11-19 12:51:35 +0400 |
commit | 67031c1712eae091dd8c1ffaab43b7d9508bd446 (patch) | |
tree | 411a7900d33ecfe57ebb29e84f7aeb53c7c1cd09 /CMakeLists.txt | |
parent | 509e178f72565c3c45b56444dc5289acafb3ad96 (diff) |
Fix when statically linking with distro's boost: in this case, we most likely also need to statically link against icu, as most boost packages are built with it. Without that, you get a bunch of errors at link time (when using boost_locale, or, in freestyle branch, boost_regex).
So when you enable Boost_USE_STATIC_LIBS, you should also set Boost_USE_ICU to True. Will add a note about that in build doc too.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fe1a6d03335..634ada0eecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -644,6 +644,9 @@ if(UNIX AND NOT APPLE) list(APPEND __boost_packages locale) endif() find_package(Boost 1.34 COMPONENTS ${__boost_packages}) + if(Boost_USE_STATIC_LIBS AND Boost_USE_ICU) + find_package(IcuLinux) + endif() mark_as_advanced(Boost_DIR) # why doesnt boost do this? endif() |