Skip to content

Define UMF_SRC_VERSION in the proxy library #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ set(UMF_SOURCES_WINDOWS libumf_windows.c)
# Compile definitions for UMF library.
#
# TODO: Cleanup the compile definitions across all the CMake files
set(UMF_PRIVATE_COMPILE_DEFINITIONS "-DUMF_SRC_VERSION=${UMF_SRC_VERSION}")
set(UMF_PRIVATE_COMPILE_DEFINITIONS UMF_SRC_VERSION=${UMF_SRC_VERSION})

set(UMF_SOURCES_COMMON_LINUX_MACOSX
provider/provider_os_memory.c
Expand Down
2 changes: 2 additions & 0 deletions src/proxy_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ add_library(${PROJECT_NAME}::proxy ALIAS umf_proxy)

target_link_directories(umf_proxy PRIVATE ${LIBHWLOC_LIBRARY_DIRS})

target_compile_definitions(umf_proxy PRIVATE UMF_SRC_VERSION=${UMF_SRC_VERSION})

if(PROXY_LIB_USES_SCALABLE_POOL)
target_compile_definitions(umf_proxy PRIVATE PROXY_LIB_USES_SCALABLE_POOL=1)
elseif(PROXY_LIB_USES_JEMALLOC_POOL)
Expand Down
Loading