implemented cmake options to disable extra features for performances optimization

can be easily extended to all features that can be optional
but have high performance impact
This commit is contained in:
Yehonal
2017-03-25 12:35:51 +01:00
parent 12fa25c322
commit 2f71abc6c6
3 changed files with 44 additions and 16 deletions

View File

@@ -105,5 +105,21 @@ if ( NOJEM )
message(" *** DO NOT DISABLE IT UNLESS YOU KNOW WHAT YOU'RE DOING!")
endif()
# Performance optimization options:
if( DISABLE_EXTRAS )
message("* Disable extra features : Yes")
add_definitions(-DDISABLE_EXTRAS)
else()
message("* Disable extra features : No (default)")
endif()
if( DISABLE_VMAP_CHECKS )
message("* Disable vmap DisableMgr checks : Yes")
add_definitions(-DDISABLE_VMAP_CHECKS)
else()
message("* Disable vmap DisableMgr checks : No (default)")
endif()
message("")