summaryrefslogtreecommitdiff
path: root/indra/cmake/Boost.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-09-30 11:48:20 +0800
committerErik Kundiman <erik@megapahit.org>2024-09-30 11:48:20 +0800
commitf7873910039b45b4426172cea1f0db3f79f349c5 (patch)
tree85ef3c36ed31ba135a012014bf26fc004ccca31d /indra/cmake/Boost.cmake
parente6165435ab48673612bf8896d68bcd2543176692 (diff)
Windows configuration, with MSYS2 in MinGW for now
Also simplify CMake-based dependency projects, the parameters that have been set for the viewer seem to have been implied all this time for the subprojects.
Diffstat (limited to 'indra/cmake/Boost.cmake')
-rw-r--r--indra/cmake/Boost.cmake12
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/cmake/Boost.cmake b/indra/cmake/Boost.cmake
index 31bb4124c2..26c0843300 100644
--- a/indra/cmake/Boost.cmake
+++ b/indra/cmake/Boost.cmake
@@ -9,13 +9,17 @@ if( USE_CONAN )
target_compile_definitions( ll::boost INTERFACE BOOST_ALLOW_DEPRECATED_HEADERS BOOST_BIND_GLOBAL_PLACEHOLDERS )
return()
elseif( NOT USE_AUTOBUILD_3P )
- if (DARWIN)
- set(sfx "-mt")
+ if (WINDOWS)
+ set(sfx -mt)
+ target_include_directories( ll::boost SYSTEM INTERFACE /opt/local/x86_64-w64-mingw32/include)
+ target_link_directories( ll::boost INTERFACE /opt/local/x86_64-w64-mingw32/lib)
+ elseif (DARWIN)
+ set(sfx -mt)
target_include_directories( ll::boost SYSTEM INTERFACE /opt/local/libexec/boost/1.81/include)
target_link_directories( ll::boost INTERFACE /opt/local/libexec/boost/1.81/lib)
- else (DARWIN)
+ else (WINDOWS)
find_package( Boost REQUIRED )
- endif (DARWIN)
+ endif (WINDOWS)
target_link_libraries( ll::boost INTERFACE
boost_context${sfx}
boost_fiber${sfx}