Commit 2be437b2 authored by Samuel Debionne's avatar Samuel Debionne

Use target_compile_definitions instead of add_compile_definitions

parent 91a39292
Pipeline #8202 passed with stages
in 20 minutes and 11 seconds
......@@ -259,12 +259,12 @@ if(LIMA_BUILD_SUBMODULES)
endif()
if(UNIX AND LIMA_ENABLE_NUMA)
add_compile_definitions(LIMA_USE_NUMA)
target_compile_definitions(limacore PUBLIC LIMA_USE_NUMA)
target_include_directories(limacore PRIVATE "${NUMA_INCLUDE_DIR}")
endif()
if(LIMA_ENABLE_SPS_IMAGE)
target_compile_definitions(limacore PUBLIC -DWITH_SPS_IMAGE)
target_compile_definitions(limacore PUBLIC WITH_SPS_IMAGE)
target_include_directories(limacore PRIVATE "${CMAKE_SOURCE_DIR}/third-party/Sps/Include")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment