Skip to content

Commit

Permalink
Merge pull request #871 from edge-classic/ec-fix-msvc
Browse files Browse the repository at this point in the history
Use options instead of definitions for header override
pbdot authored Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 308a692 + 48c8192 commit 32aaefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:Debug>")
if (EDGE_MIMALLOC)
# Override memory allocations to use mimalloc
add_definitions(/FI"${CMAKE_SOURCE_DIR}/libraries/mimalloc/include/mimalloc-override.h")
add_compile_options(/FI"${CMAKE_SOURCE_DIR}/libraries/mimalloc/include/mimalloc-override.h")
endif()
endif()

0 comments on commit 32aaefd

Please sign in to comment.