-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[boost-container] Add boost-static-assert dep
- Loading branch information
Showing
6 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 01e97c5..30af76f 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -15,6 +15,13 @@ add_library(boost_container | ||
src/synchronized_pool_resource.cpp | ||
src/unsynchronized_pool_resource.cpp | ||
) | ||
+if(EMSCRIPTEN) | ||
+ # BOOST_HAS_PTHREADS is required to avoid windows declarations in | ||
+ # libs/container/include/boost/container/detail/thread_mutex.hpp | ||
+ # This should come from include/boost/config/detail/posix_features.hpp, | ||
+ # but ... https://github.com/microsoft/vcpkg/issues/38469 | ||
+ target_compile_options(boost_container PUBLIC -pthread) | ||
+endif() | ||
|
||
add_library(Boost::container ALIAS boost_container) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 78acbe2..01e97c5 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -26,7 +26,6 @@ target_link_libraries(boost_container | ||
Boost::config | ||
Boost::intrusive | ||
Boost::move | ||
- Boost::static_assert | ||
) | ||
|
||
target_compile_definitions(boost_container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters