Skip to content

Commit

Permalink
fix MI_EXTRA_CPPDEFS setting
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Oct 21, 2024
1 parent 50d3525 commit 34e6677
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ set(mi_cflags "")
set(mi_cflags_static "") # extra flags for a static library build
set(mi_cflags_dynamic "") # extra flags for a shared-object library build
set(mi_libraries "")
set(mi_defines ${MI_EXTRA_CPPDEFS})

if(MI_EXTRA_CPPDEFS)
set(mi_defines ${MI_EXTRA_CPPDEFS})
else()
set(mi_defines "")
endif()

# -----------------------------------------------------------------------------
# Convenience: set default build type depending on the build directory
Expand Down

0 comments on commit 34e6677

Please sign in to comment.