forked from Codesire-Deng/co_context
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(cmake): make
mimalloc
an option (Codesire-Deng#12)
/CMakeLists.txt now add an option for `mimalloc`. The default is `ON`, which means `mimalloc` version 2.0 or above is required.
- Loading branch information
1 parent
ef1915a
commit c936401
Showing
3 changed files
with
20 additions
and
15 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
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
|
||
find_package(mimalloc 2.0 REQUIRED) | ||
|
||
|
||
include_directories(${PROJECT_SOURCE_DIR}/include) | ||
file(GLOB_RECURSE sources CONFIGURE_DEPENDS *.cpp) | ||
|
||
add_library(co_context OBJECT ${sources}) | ||
|
||
target_link_libraries(co_context PUBLIC mimalloc) | ||
if (mi_version) | ||
target_link_libraries(co_context PUBLIC mimalloc) | ||
endif() |
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