Skip to content

Commit

Permalink
Propagate macro to disable vast if it's disabled in the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Goodman committed Dec 8, 2023
1 parent 93145d5 commit 7723c1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ add_library("multiplier" SHARED
"${PROJECT_BINARY_DIR}/Version.cpp"
)

if(NOT MX_ENABLE_VAST)
target_compile_definitions("multiplier"
PUBLIC
"MX_DISABLE_VAST")
endif()

if(NOT MX_ENABLE_PYTHON_BINDINGS)
target_compile_definitions("mx-api"
PUBLIC
"MX_DISABLE_PYTHON_BINDINGS")
endif()

set_target_properties("multiplier"
PROPERTIES
LINKER_LANGUAGE
Expand Down

0 comments on commit 7723c1a

Please sign in to comment.