diff options
Diffstat (limited to 'indra/cmake/Boost.cmake')
| -rw-r--r-- | indra/cmake/Boost.cmake | 35 | 
1 files changed, 35 insertions, 0 deletions
diff --git a/indra/cmake/Boost.cmake b/indra/cmake/Boost.cmake index b57c33c3e0..21506c6244 100644 --- a/indra/cmake/Boost.cmake +++ b/indra/cmake/Boost.cmake @@ -4,6 +4,41 @@ include(Prebuilt)  include_guard()  add_library( ll::boost INTERFACE IMPORTED ) + +if (DARWIN) +  target_include_directories( ll::boost SYSTEM INTERFACE /opt/local/libexec/boost/1.88/include) +  target_link_directories( ll::boost INTERFACE /opt/local/libexec/boost/1.88/lib) +  set(sfx -mt) +elseif (WINDOWS) +  target_include_directories( ll::boost SYSTEM INTERFACE ${prefix_result}/../include) +  target_link_directories( ll::boost INTERFACE ${prefix_result}) +  if ($ENV{MSYSTEM_CARCH} MATCHES aarch64) +    set(sfx -vc143-mt-a64-1_89) +  else () +    set(sfx -vc143-mt-x64-1_89) +  endif () +else () +  find_package( Boost ) +endif () +target_link_libraries( ll::boost INTERFACE +  boost_context${sfx} +  boost_fiber${sfx} +  boost_filesystem${sfx} +  boost_program_options${sfx} +  boost_thread${sfx} +  boost_url${sfx} +  ) +if (WINDOWS) +  target_link_libraries( ll::boost INTERFACE boost_json${sfx}) +else () +  target_link_libraries( ll::boost INTERFACE boost_regex${sfx}) +endif () +if (NOT (${LINUX_DISTRO} MATCHES arch OR (${LINUX_DISTRO} MATCHES opensuse-tumbleweed) OR WINDOWS OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)) +  target_link_libraries( ll::boost INTERFACE boost_system${sfx}) +endif () +target_compile_definitions( ll::boost INTERFACE BOOST_BIND_GLOBAL_PLACEHOLDERS ) +return() +  if( USE_CONAN )    target_link_libraries( ll::boost INTERFACE CONAN_PKG::boost )    target_compile_definitions( ll::boost INTERFACE BOOST_ALLOW_DEPRECATED_HEADERS BOOST_BIND_GLOBAL_PLACEHOLDERS )  | 
